Class StreamingIndicators.Sma
java.lang.Object
com.quantfinlib.indicators.StreamingIndicators.Sma
- Enclosing class:
StreamingIndicators
Simple moving average over a fixed window; NaN until the window fills.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sma
public Sma(int period)
-
-
Method Details
-
update
public double update(double v) -
value
public double value()
-