Vector.Cosine Distance<T> Method
Returns the cosine of the angle between two vectors.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The cosine of the angle between left and right.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static T CosineDistance<T>(
Vector<T> left,
Vector<T> right
)
Parameters
Type Parameters
- T
Return Value
TThe cosine of the angle between left and right.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | The length of left is not equal to the length of right. |