matrix with features (X).
an array of labels (dependent variable Y).
Optionaloptions: { limit?: number; numberOSC?: number } = {}an object with options.
Optionallimit?: numberconvergence threshold used to stop the iteration.
OptionalnumberOSC?: numbermaximum number of NIPALS iterations.
the computed model with the following properties:
filteredX: X with the orthogonal component removed.weightsXOrtho: Y-orthogonal weights of X.loadingsXOrtho: Y-orthogonal loadings of X.scoresXOrtho: Y-orthogonal scores of X.weightsXPred: predictive weights of X.loadingsXpred: predictive loadings of X.scoresXpred: predictive scores of X.loadingsY: loadings of Y.
Single OPLS (orthogonal projections to latent structures) NIPALS iteration. Computes the predictive and Y-orthogonal components and returns the data with the orthogonal variation filtered out.