Click or drag to resize
Accord.NET (logo)

DistanceCosine Method

Gets the Cosine distance between two points.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.6.0
Syntax
public static double Cosine(
	double[] x,
	double[] y
)
Request Example View Source

Parameters

x
Type: SystemDouble
y
Type: SystemDouble

Return Value

Type: Double
The Cosine distance between x and y.
See Also