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

    Interface MadOptions

    Options for mad.

    interface MadOptions {
        center?: number;
        constant?: number;
        high?: boolean;
        low?: boolean;
        naRm?: boolean;
    }

    Hierarchy (View Summary)

    Index
    center?: number

    Centre. Default: the median (NaN if x has a missing value and naRm is not set).

    constant?: number

    Scale factor. Default 1.4826 (consistent for the normal standard deviation).

    high?: boolean

    For an even count n, take the higher one (the "hi-median"): the (n / 2 + 1)-th smallest, as for low. Both low and high is an error for an even count.

    low?: boolean

    For an even count n, take the lower of the two middle absolute deviations (the "lo-median"): the (n / 2)-th smallest. As in R, n counts the missing values unless naRm removed them, the k-th smallest is taken among the deviations that are not missing, and fewer than k of them (or k = 0) is an error. With an odd count the ordinary median is used.

    naRm?: boolean

    Drop NaN (R's NA) before computing. Default false: a NaN gives NaN.