rStats.js v1.3.0
    Preparing search index...

    Function ecdf

    • Empirical distribution function of x: a function returning the fraction of values at or below its argument. Equivalent to R's ecdf(). NaN values are dropped.

      Parameters

      Returns (q: number) => number

      ecdf([3, 1, 2])(2); // 0.6666666666666666