Creates new PCA (Principal Component Analysis) from the dataset

new PCA(dataset: Matrix, options: Object)
Parameters
dataset (Matrix) dataset or covariance matrix
options (Object)
Name Description
options.isCovarianceMatrix boolean (default false) true if the dataset is a covariance matrix
options.center boolean (default true) should the data be centered (subtract the mean)
options.scale boolean (default false) should the data be scaled (divide by the standard deviation)
Static Members
load(model)
Instance Members
predict(dataset, options)
getExplainedVariance()
getCumulativeVariance()
getEigenvectors()
getEigenvalues()
getStandardDeviations()
getLoadings()
toJSON()