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

    Interface SampleOptions

    Options for sample and sampleInt.

    interface SampleOptions {
        prob?: readonly number[];
        replace?: boolean;
        size?: number;
    }
    Index
    prob?: readonly number[]

    Weights for the candidates (need not sum to 1). Default: equal probabilities.

    replace?: boolean

    Sample with replacement. Default false.

    size?: number

    Number of items to draw (truncated, as R; below 2^31 with prob). Default: the number of candidates (a random permutation).