The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TVector, TIntVector
Declaration: function PearsonCorrCoeff (OtherVec: TVector): double;{ class TVector }
function PearsonCorrCoeff (OtherVec: TIntVector): double;{ class TIntVector }

The function PearsonCorrCoeff calculates Pearson's correlation coefficient of the two series contained the vectors self and OtherVec. If the correlation coefficient cannot be calculated a zero value is returned.

Hint: Please note that the two vectors self and OtherVec need not be of equal length.

Last Update: 2016-Aug-02