Click or drag to resize
Accord.NET (logo)

CircularToRadians Method (Double, Double)

Transforms circular data into angles (normalizes the data to be between -PI and PI).

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double ToRadians(
	this double sample,
	double length
)
Request Example View Source

Parameters

sample
Type: SystemDouble
The sample to be transformed.
length
Type: SystemDouble
The maximum possible sample value (such as 24 for hour data).

Return Value

Type: Double
The sample normalized to be between -PI and PI.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also