Databricks SDK for JavaScript
    Preparing search index...

    Interface ApproxPercentileFunction

    Computes the approximate percentile of values.

    interface ApproxPercentileFunction {
        accuracy?: bigint;
        input?: string;
        percentile?: number;
        relativeError?: number;
    }
    Index

    Properties

    accuracy?: bigint

    The accuracy parameter (higher is more accurate but slower). Deprecated: use relative_error. When relative_error is set, reads return ceil(1 / relative_error) here for clients that don't have relative_error, and a request may only send that value.

    input?: string

    The input column from which the approximate percentile is computed.

    percentile?: number

    The percentile value to compute (between 0 and 1).

    relativeError?: number

    The error the user accepts, as a fraction of rank, between 0.01 (by default) and 0.3. The result is within this rank error with 99% confidence: at 0.01, the value returned for p95 is between the true p94 and p96 at least 99% of the time. Feature Store picks the sketch size that gives this error. If neither relative_error nor accuracy is set, 0.01 is default chosen at feature creation.