Share via


DataFrameStatFunctions.ApproxQuantile Method

Definition

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).

Applies to