V
- vector typepublic class InstanceMinMaxNormalization<V extends NumberVector> extends AbstractStreamNormalization<V>
Modifier and Type | Class and Description |
---|---|
static class |
InstanceMinMaxNormalization.Parameterizer<V extends NumberVector>
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
private double |
max
Minimum and maximum values.
|
private double |
min
Minimum and maximum values.
|
private int |
multiplicity
Multiplicity of the vector.
|
factory
source
Constructor and Description |
---|
InstanceMinMaxNormalization()
Constructor, normalizing to
[0;1] |
InstanceMinMaxNormalization(double min,
double max)
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 void |
initializeOutputType(SimpleTypeInformation<V> type)
Initialize factory from a data type.
|
convertedType, restore, toString, transform
data, getMeta, nextEvent
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
filter
private double min
private double max
private int multiplicity
public InstanceMinMaxNormalization(double min, double max)
min
- Desired minimum valuemax
- Desired maximum valuepublic InstanceMinMaxNormalization()
[0;1]
protected V filterSingleObject(V featureVector)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
featureVector
- Database object to normalizeprotected void initializeOutputType(SimpleTypeInformation<V> type)
AbstractVectorStreamConversionFilter
initializeOutputType
in class AbstractVectorStreamConversionFilter<V extends NumberVector,V extends NumberVector>
type
- Output data type information.protected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<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.