You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spreads library is designed for online algorithms (among other goals). Some of non-trivial ones are already implemented: moving median with fixed length, moving regression (commented out temporarily).
Here is the place to collect links to interesting online algorithms that could be useful and have known implementations.
…ation to a span, which could be defined by a number of elements, a width or a custom condition. #120
**SMADirectAndIndirectSpanOpBenchmark**
*The window width is 20. SMA MOPS are calculated as a number of calculated values multiplied by the width, which is equivalent to the total number of cursor moves for Window case. SortedMap line is for reference - it is the speed of raw iteration over SM without Windows overheads.*
Case | MOPS | Elapsed | GC0 | GC1 | GC2 | Memory
------------- |--------:|---------:|------:|------:|------:|--------:
SMA Direct | 333.33 | 60 ms | 0.0 | 0.0 | 0.0 | 0.000 MB
SMA Indirect | 303.03 | 66 ms | 0.0 | 0.0 | 0.0 | 0.000 MB
SortedMap | 100.00 | 10 ms | 0.0 | 0.0 | 0.0 | 0.000 MB
SMA Window | 19.90 | 1005 ms | 0.0 | 0.0 | 0.0 | 0.008 MB
Spreads library is designed for online algorithms (among other goals). Some of non-trivial ones are already implemented: moving median with fixed length, moving regression (commented out temporarily).
Here is the place to collect links to interesting online algorithms that could be useful and have known implementations.
Online algorithm
#75, #82
Online Algorithms in High-frequency Trading
Longest increasing subsequence
Insertion sort (Review: this is the method SortedDeque is waiting to implement and even has/had comments)
Algorithms for calculating variance
Boost.Accumulators
The text was updated successfully, but these errors were encountered: