Returns the pearson correlation for two N-dimensional double vectors.

Namespace:  AForge.Math.Metrics
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double GetSimilarityScore(
	double[] p,
	double[] q
)

Parameters

p
Type: array< System..::.Double >[]()[]
1st point vector.
q
Type: array< System..::.Double >[]()[]
2nd point vector.

Return Value

Returns Pearson correlation between two supplied vectors.

Implements

ISimilarity..::.GetSimilarityScore(array<Double>[]()[], array<Double>[]()[])

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThrown if the two vectors are of different dimensions (if specified array have different length).

See Also