Class StandardDeviation
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.statistical.StandardDeviation
StandardDeviation is a Num Indicator to provide the statistical standard deviation (stddev)
over a length of values. The calculation is the same as the root-mean-square deviation (RMSD).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class trade.invision.indicators.indicators.Indicator
Indicator.CacheSeries -
Field Summary
Fields inherited from class trade.invision.indicators.indicators.Indicator
cachedAddCallCount, cachedIndex, cachedValue, cacheSeries, minimumStableIndex, series -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandardDeviation(Indicator<Num> indicator, int length, boolean unbiased) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static StandardDeviationstandardDeviation(Indicator<Num> indicator, int length, boolean unbiased) Gets aStandardDeviation.static StandardDeviationMethods inherited from class trade.invision.indicators.indicators.Indicator
caching, getMinimumStableIndex, getSeries, getValue, isCaching, numOf, numOf, numOf, numOf, numOfEight, numOfFive, numOfFour, numOfHalf, numOfHundred, numOfHundredth, numOfNegativeOne, numOfNine, numOfOne, numOfSeven, numOfSix, numOfTen, numOfTenth, numOfThousand, numOfThousandth, numOfThree, numOfTwo, numOfZero, purgeCache
-
Constructor Details
-
StandardDeviation
-
-
Method Details
-
stddev
- See Also:
-
standardDeviation
public static StandardDeviation standardDeviation(Indicator<Num> indicator, int length, boolean unbiased) Gets aStandardDeviation.- Parameters:
indicator- theIndicatorlength- the number of values to look back atunbiased-trueto usen - 1(unbiased) for the divisor in the standard deviation calculation,falseto usen(biased)
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-