Click or drag to resize
Accord.NET (logo)

CircularToRadians Method (Double, Double, Boolean)

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
public static double[] ToRadians(
	this double[] samples,
	double length,
	bool inPlace = false
Request Example View Source


Type: SystemDouble
The samples to be transformed.
Type: SystemDouble
The maximum possible sample value (such as 24 for hour data).
inPlace (Optional)
Type: SystemBoolean
Whether to perform the transformation in place.

Return Value

Type: Double
A double array containing the same data in samples, but normalized 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 . 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