|
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
)
<ExtensionAttribute>
Public Shared Function ToRadians (
sample As Double,
length As Double
) As Double
Request Example
View SourceParameters
- 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:
DoubleThe
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