Skip to main content

%DeepSee.extensions.components.PCA

Class %DeepSee.extensions.components.PCA Extends (%Library.Persistent, %DeepSee.extensions.BlackBox) [ System = 4 ]

Properties

Table

Property Table As %String;

UseSQLUPdate

Property UseSQLUPdate As %Boolean [ InitialExpression = 0 ];

InputColumnList

Property InputColumnList As %List;

OutputColumnList

Property OutputColumnList As %List;

Mean

Property Mean [ MultiDimensional ];

Loadings

Property Loadings [ MultiDimensional ];

InputStdDev

Property InputStdDev [ MultiDimensional ];

OutputStdDev

Property OutputStdDev [ MultiDimensional ];

Count

Property Count As %Integer;

Verbose

Property Verbose As %Boolean;

UseZScores

Property UseZScores As %Boolean;

Methods

%OnOpen

Method %OnOpen() As %Status [ Private, ServerOnly = 1 ]

This callback method is invoked by the %Open method to provide notification that the object specified by oid is being opened.

If this method returns an error then the object will not be opened.

CalcCovMatrix

Method CalcCovMatrix(Output cov) As %Status

CalcMean

Method CalcMean() As %Status

GetTransformationMatrix

Method GetTransformationMatrix(Output W) As %Status

GetEigenVector

Method GetEigenVector(i As %Integer) As %Double

GetAxisMajorContributors

Method GetAxisMajorContributors(j As %Integer, margin As %Double, Output listPos As %List, Output listNeg As %List) As %Status

GetVectorMajorContributors

Method GetVectorMajorContributors(ByRef V, margin As %Double, Output listPos As %List, Output listNeg As %List) As %Status

setComponents

Method setComponents() As %Status

setComponentsCOS

Method setComponentsCOS(ByRef W) As %Status

GetEffectiveDimensionality

Method GetEffectiveDimensionality(marginalRate As %Double = 0.9, Output sc As %Status) As %Double

GetModifiedEffectiveDimensionality

Method GetModifiedEffectiveDimensionality(marginalRate As %Double = 0.9, Q As %Integer = "", Output sc As %Status) As %Double

execute

Method execute() As %Status

print

Method print() As %Status

process

ClassMethod process(table As %String, input As %String, out As %String, Output result As PCA, useZScores As %Boolean = 1, verbose As %Boolean = 0) As %Status

setOutputColumns

Method setOutputColumns(out As %String) As %Status