V
- vector type@Alias(value={"de.lmu.ifi.dbs.elki.datasource.filter.normalization.AttributeWiseVarianceNormalization","z"}) public class AttributeWiseVarianceNormalization<V extends NumberVector> extends AbstractNormalization<V>
Modifier and Type | Class and Description |
---|---|
static class |
AttributeWiseVarianceNormalization.Parameterizer<V extends NumberVector>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Class logger.
|
private double[] |
mean
Stores the mean in each dimension.
|
(package private) MeanVariance[] |
mvs
Temporary storage used during initialization.
|
private double[] |
stddev
Stores the standard deviation in each dimension.
|
factory
Constructor and Description |
---|
AttributeWiseVarianceNormalization()
Constructor.
|
AttributeWiseVarianceNormalization(double[] mean,
double[] stddev)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected V |
filterSingleObject(V featureVector)
Normalize a single instance.
|
protected SimpleTypeInformation<? super V> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Class logger.
|
private double |
normalize(int d,
double val)
Normalize a single dimension.
|
protected void |
prepareComplete()
Complete the initialization phase.
|
protected void |
prepareProcessInstance(V featureVector)
Process a single object during initialization.
|
protected boolean |
prepareStart(SimpleTypeInformation<V> in)
Return "true" when the normalization needs initialization (two-pass filtering!).
|
private double |
restore(int d,
double val)
Restore a single dimension.
|
V |
restore(V featureVector)
Transforms a feature vector to the original attribute ranges.
|
String |
toString() |
LinearEquationSystem |
transform(LinearEquationSystem linearEquationSystem)
Transforms a linear equation system describing linear dependencies
derived on the normalized space into a linear equation system describing
linear dependencies quantitatively adapted to the original space.
|
convertedType
initializeOutputType
filter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
filter
private static final Logging LOG
private double[] mean
private double[] stddev
MeanVariance[] mvs
public AttributeWiseVarianceNormalization(double[] mean, double[] stddev)
mean
- Mean valuestddev
- Standard deviationpublic AttributeWiseVarianceNormalization()
protected boolean prepareStart(SimpleTypeInformation<V> in)
AbstractConversionFilter
prepareStart
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
in
- Input type informationprotected void prepareProcessInstance(V featureVector)
AbstractConversionFilter
prepareProcessInstance
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
featureVector
- Object to processprotected void prepareComplete()
AbstractConversionFilter
prepareComplete
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
protected V filterSingleObject(V featureVector)
AbstractConversionFilter
filterSingleObject
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
featureVector
- Database object to normalizepublic V restore(V featureVector) throws NonNumericFeaturesException
Normalization
restore
in interface Normalization<V extends NumberVector>
restore
in class AbstractNormalization<V extends NumberVector>
featureVector
- a feature vector to be transformed into original spaceNonNumericFeaturesException
- feature vector is not compatible with values initialized
during normalizationprivate double normalize(int d, double val)
d
- Dimensionval
- Valueprivate double restore(int d, double val)
d
- Dimensionval
- Valuepublic LinearEquationSystem transform(LinearEquationSystem linearEquationSystem)
Normalization
transform
in interface Normalization<V extends NumberVector>
transform
in class AbstractNormalization<V extends NumberVector>
linearEquationSystem
- the linear equation system to be transformedpublic String toString()
toString
in class AbstractNormalization<V extends NumberVector>
protected Logging getLogger()
AbstractConversionFilter
getLogger
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
protected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractConversionFilter
getInputTypeRestriction
in class AbstractConversionFilter<V extends NumberVector,V extends NumberVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.