V
- vector typepublic class HellingerHistogramNormalization<V extends NumberVector> extends AbstractVectorStreamConversionFilter<V,V> implements Normalization<V>
\[ H(x_i)=\tfrac{\sqrt{|x_i|/\Sigma}}{\sqrt{2}} \quad\text{ with } \Sigma=\sum\nolimits_i |x_i| \]
Using Euclidean distance (linear kernel) and this transformation is the same
as using Hellinger distance:
HellingerDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
HellingerHistogramNormalization.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
static HellingerHistogramNormalization<NumberVector> |
STATIC
Static instance.
|
factory
source
Constructor and Description |
---|
HellingerHistogramNormalization()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SimpleTypeInformation<? super V> |
convertedType(SimpleTypeInformation<V> in)
Get the output type from the input type after conversion.
|
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.
|
initializeOutputType
data, getMeta, nextEvent
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
restore, transform
filter
public static final HellingerHistogramNormalization<NumberVector> STATIC
public HellingerHistogramNormalization()
protected V filterSingleObject(V featureVector)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
featureVector
- Database object to normalizeprotected SimpleTypeInformation<? super V> convertedType(SimpleTypeInformation<V> in)
AbstractStreamConversionFilter
convertedType
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
in
- input type restrictionprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
Copyright © 2019 ELKI Development Team. License information.