
V - Vector type@Alias(value={"de.lmu.ifi.dbs.elki.datasource.filter.normalization.InverseDocumentFrequencyNormalization","de.lmu.ifi.dbs.elki.datasource.filter.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, transforminitializeOutputTypefilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfilterprivate static final Logging LOG
TIntDoubleMap idf
int objcnt
public InverseDocumentFrequencyNormalization()
protected boolean prepareStart(SimpleTypeInformation<V> in)
AbstractConversionFilterprepareStart in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>in - Input type informationprotected void prepareProcessInstance(V featureVector)
AbstractConversionFilterprepareProcessInstance in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>featureVector - Object to processprotected void prepareComplete()
AbstractConversionFilterprepareComplete in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>protected V filterSingleObject(V featureVector)
AbstractConversionFilterfilterSingleObject in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>featureVector - Database object to normalizepublic V restore(V featureVector)
Normalizationrestore 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()
AbstractConversionFiltergetInputTypeRestriction in class AbstractConversionFilter<V extends SparseNumberVector,V extends SparseNumberVector>protected Logging getLogger()
AbstractConversionFiltergetLogger 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.