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 have to have the same length. For vectors of unequal lengths the returned value is set to zero.

Last Update: 2023-Feb-06