| ArrayStatisticsQuantileInplace Method |
Estimates the tau-th quantile from the unsorted data array.
The tau-th quantile is the data value where the cumulative distribution
function crosses tau.
Approximately median-unbiased regardless of the sample distribution (R8).
WARNING: Works inplace and can thus causes the data array to be reordered.
Namespace: MathNet.Numerics.StatisticsAssembly: MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax public static double QuantileInplace(
double[] data,
double tau
)
Parameters
- data
- Type: SystemDouble
Sample array, no sorting is assumed. Will be reordered. - tau
- Type: SystemDouble
Quantile selector, between 0.0 and 1.0 (inclusive).
Return Value
Type:
DoubleRemarks
R-8, SciPy-(1/3,1/3):
Linear interpolation of the approximate medians for order statistics.
When tau < (2/3) / (N + 1/3), use x1. When tau >= (N - 1/3) / (N + 1/3), use xN.
See Also