Click or drag to resize
Accord.NET (logo)

CircularQuartiles Method (Double, Double, Double, Double, Double, Boolean, QuantileMethod)

Computes the circular quartiles of the given circular samples. The minimum possible value for a sample must be zero and the maximum must be indicated in the parameter length.

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double Quartiles(
	double[] samples,
	double length,
	out double q1,
	out double q3,
	double median,
	bool wrap = true,
	QuantileMethod type = QuantileMethod.Default
)
Request Example View Source

Parameters

samples
Type: SystemDouble
A double array containing the circular samples.
length
Type: SystemDouble
The maximum possible value of the samples.
q1
Type: SystemDouble
The first quartile, as an out parameter.
q3
Type: SystemDouble
The third quartile, as an out parameter.
median
Type: SystemDouble
The median value of the samples, if already known.
wrap (Optional)
Type: SystemBoolean
Whether range values should be wrapped to be contained in the circle. If set to false, range values could be returned outside the [+pi;-pi] range.
type (Optional)
Type: Accord.StatisticsQuantileMethod
The quartile definition that should be used. See QuantileMethod for datails.

Return Value

Type: Double
The median of the given samples.
See Also