O
- Vector type@Alias(value={"whiten","whitening","pca"}) public class GlobalPrincipalComponentAnalysisTransform<O extends NumberVector> extends AbstractVectorConversionFilter<O,O>
GlobalPrincipalComponentAnalysisTransform.Parameterizer.FILTER_ID
parameter!Modifier and Type | Class and Description |
---|---|
static class |
GlobalPrincipalComponentAnalysisTransform.Parameterizer<O extends NumberVector>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) double[] |
buf
Projection buffer.
|
(package private) CovarianceMatrix |
covmat
Covariance matrix builder.
|
(package private) int |
dim
Actual dataset dimensionality.
|
(package private) EigenPairFilter |
filter
Filter to use for dimensionality reduction.
|
private static Logging |
LOG
Class logger.
|
(package private) double[] |
mean
Vector for data set centering.
|
(package private) double[][] |
proj
Final projection after analysis run.
|
factory
Constructor and Description |
---|
GlobalPrincipalComponentAnalysisTransform(EigenPairFilter filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SimpleTypeInformation<? super O> |
convertedType(SimpleTypeInformation<O> in)
Get the output type from the input type after conversion.
|
protected O |
filterSingleObject(O obj)
Normalize a single instance.
|
protected SimpleTypeInformation<? super O> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Class logger.
|
protected void |
prepareComplete()
Complete the initialization phase.
|
protected void |
prepareProcessInstance(O obj)
Process a single object during initialization.
|
protected boolean |
prepareStart(SimpleTypeInformation<O> in)
Return "true" when the normalization needs initialization (two-pass filtering!).
|
initializeOutputType
filter
private static final Logging LOG
EigenPairFilter filter
int dim
CovarianceMatrix covmat
double[][] proj
double[] buf
double[] mean
public GlobalPrincipalComponentAnalysisTransform(EigenPairFilter filter)
filter
- Filter to use for dimensionality reduction.protected boolean prepareStart(SimpleTypeInformation<O> in)
AbstractConversionFilter
prepareStart
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
in
- Input type informationprotected void prepareProcessInstance(O obj)
AbstractConversionFilter
prepareProcessInstance
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
obj
- Object to processprotected void prepareComplete()
AbstractConversionFilter
prepareComplete
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
protected O filterSingleObject(O obj)
AbstractConversionFilter
filterSingleObject
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
obj
- Database object to normalizeprotected SimpleTypeInformation<? super O> getInputTypeRestriction()
AbstractConversionFilter
getInputTypeRestriction
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
protected SimpleTypeInformation<? super O> convertedType(SimpleTypeInformation<O> in)
AbstractConversionFilter
convertedType
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
in
- input type restrictionprotected Logging getLogger()
AbstractConversionFilter
getLogger
in class AbstractConversionFilter<O extends NumberVector,O extends NumberVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.