V
- vector typepublic class LengthNormalization<V extends NumberVector<V,?>> extends AbstractStreamNormalization<V>
Modifier and Type | Class and Description |
---|---|
static class |
LengthNormalization.Parameterizer<V extends NumberVector<V,?>>
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
(package private) DoubleNorm<? super V> |
norm
Norm to use
|
source
Constructor and Description |
---|
LengthNormalization(DoubleNorm<? super V> norm)
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.
|
V |
restore(V featureVector)
Transforms a feature vector to the original attribute ranges.
|
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, normalizeObjects, toString
data, getMeta, nextEvent
filter, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
filter
DoubleNorm<? super V extends NumberVector<V,?>> norm
public LengthNormalization(DoubleNorm<? super V> norm)
norm
- Norm to useprotected V filterSingleObject(V featureVector)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<V extends NumberVector<V,?>,V extends NumberVector<V,?>>
featureVector
- Database object to normalizepublic V restore(V featureVector) throws NonNumericFeaturesException
Normalization
featureVector
- a feature vector to be transformed into original spaceNonNumericFeaturesException
- feature vector is not compatible with values initialized
during normalizationpublic LinearEquationSystem transform(LinearEquationSystem linearEquationSystem)
Normalization
transform
in interface Normalization<V extends NumberVector<V,?>>
transform
in class AbstractStreamNormalization<V extends NumberVector<V,?>>
linearEquationSystem
- the linear equation system to be transformedprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<V extends NumberVector<V,?>,V extends NumberVector<V,?>>