Class CorrelationCoefficient
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.statistical.CorrelationCoefficient
CorrelationCoefficient is a Num Indicator to provide the statistical correlation coefficient
(CC) of two Indicators over a length of values.- 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
ConstructorsModifierConstructorDescriptionprotectedCorrelationCoefficient(Indicator<Num> first, Indicator<Num> second, int length, boolean unbiased) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static CorrelationCoefficientstatic CorrelationCoefficientcorrelationCoefficient(Indicator<Num> first, Indicator<Num> second, int length, boolean unbiased) Gets aCorrelationCoefficient.Methods 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
-
CorrelationCoefficient
-
-
Method Details
-
cc
public static CorrelationCoefficient cc(Indicator<Num> first, Indicator<Num> second, int length, boolean unbiased) - See Also:
-
correlationCoefficient
public static CorrelationCoefficient correlationCoefficient(Indicator<Num> first, Indicator<Num> second, int length, boolean unbiased) Gets aCorrelationCoefficient. -
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-