DataFrameStatFunctions.ApproxQuantile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculates the approximate quantiles of a numerical column of a DataFrame.
public double[] ApproxQuantile (string columnName, System.Collections.Generic.IEnumerable<double> probabilities, double relativeError);
member this.ApproxQuantile : string * seq<double> * double -> double[]
Public Function ApproxQuantile (columnName As String, probabilities As IEnumerable(Of Double), relativeError As Double) As Double()
Parameters
- columnName
- String
Column name
- probabilities
- IEnumerable<Double>
A list of quantile probabilities
- relativeError
- Double
The relative target precision to achieve (greater than or equal to 0)
Returns
Double[]
The approximate quantiles at the given probabilities
Remarks
This method implements a variation of the Greenwald-Khanna algorithm (with some speed optimizations).