Click or drag to resize

MetricsCalculatorCosineSimilarity Method (Double, Int32, Double, Int32, Int32)

Cosine Similarity Distance between two objects. http://en.wikipedia.org/wiki/Cosine_similarity

Namespace:  FinMath.ClusterAnalysis
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static double CosineSimilarity(
	double[] x,
	int xoffset,
	double[] y,
	int yoffset,
	int size
)

Parameters

x
Type: SystemDouble
Array of parameters values which characterize first object.
xoffset
Type: SystemInt32
Offset of the parameters values which characterize first object.
y
Type: SystemDouble
Array of parameters values which characterize second object.
yoffset
Type: SystemInt32
Offset of the parameters values which characterize second object.
size
Type: SystemInt32
Number of parameters in characteristic.

Return Value

Type: Double
Cosine Similarity distance between two objects.
See Also