V
- Vector type@Alias(value="de.lmu.ifi.dbs.elki.datasource.filter.normalization.InverseDocumentFrequencyNormalization") public class InverseDocumentFrequencyNormalization<V extends SparseNumberVector> extends AbstractNormalization<V>
Modifier and Type | Field and Description |
---|---|
(package private) TIntDoubleMap |
idf
The IDF storage.
|
private static Logging |
LOG
Class logger.
|
(package private) int |
objcnt
The number of objects in the dataset.
|
factory
Constructor and Description |
---|
InverseDocumentFrequencyNormalization()
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.
|
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!).
|
V |
restore(V featureVector)
Transforms a feature vector to the original attribute ranges.
|
convertedType, toString, transform
initializeOutputType
filter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
filter
private static final Logging LOG
TIntDoubleMap idf
int objcnt
public InverseDocumentFrequencyNormalization()
protected boolean prepareStart(SimpleTypeInformation<V> in)
AbstractConversionFilter
prepareStart
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
in
- Input type informationprotected void prepareProcessInstance(V featureVector)
AbstractConversionFilter
prepareProcessInstance
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
featureVector
- Object to processprotected void prepareComplete()
AbstractConversionFilter
prepareComplete
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
protected V filterSingleObject(V featureVector)
AbstractConversionFilter
filterSingleObject
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
featureVector
- Database object to normalizepublic V restore(V featureVector)
Normalization
restore
in interface Normalization<V extends SparseNumberVector>
restore
in class AbstractNormalization<V extends SparseNumberVector>
featureVector
- a feature vector to be transformed into original spaceprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractConversionFilter
getInputTypeRestriction
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
protected Logging getLogger()
AbstractConversionFilter
getLogger
in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.