Click or drag to resize
Accord.NET (logo)

CircularDistance Method (Double, Double, Double, Double)

Computes the angular distance between two angles.

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double Distance(
	double cosx,
	double sinx,
	double cosy,
	double siny
)
Request Example View Source

Parameters

cosx
Type: SystemDouble
The cosine of the first sample.
sinx
Type: SystemDouble
The sin of the first sample.
cosy
Type: SystemDouble
The cosine of the second sample.
siny
Type: SystemDouble
The sin of the second sample.

Return Value

Type: Double
The distance between the two angles.
See Also