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

    Interface PrcompOptions

    Options for prcomp.

    interface PrcompOptions {
        center?: boolean | readonly number[];
        rank?: number;
        scale?: boolean | readonly number[];
        tol?: number;
    }
    Index
    center?: boolean | readonly number[]

    Centre the columns (default true), or subtract the given values.

    rank?: number

    The number k of components to keep in rotation and x (R's rank.): min(trunc(rank), nrow, ncol). It must be finite with a positive integer part. Default: all min(nrow, ncol). sdev always has all of them, as in R.

    scale?: boolean | readonly number[]

    Scale the columns to unit variance (default false), or divide by the given values.

    tol?: number

    Drop the components whose standard deviation is at most tol times that of the first: rotation and x keep the components with sdev > sdev[0] * tol if they are fewer than k. Default: none are dropped.