Package org.apache.spark.mllib.feature
Class IDF.DocumentFrequencyAggregator
Object
org.apache.spark.mllib.feature.IDF.DocumentFrequencyAggregator
- All Implemented Interfaces:
Serializable
- Enclosing class:
- IDF
Document frequency aggregator.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new document.idf()
Returns the current IDF vector, docFreq, number of documentsMerges another.int
-
Constructor Details
-
DocumentFrequencyAggregator
public DocumentFrequencyAggregator(int minDocFreq) -
DocumentFrequencyAggregator
public DocumentFrequencyAggregator()
-
-
Method Details
-
add
Adds a new document. -
idf
Returns the current IDF vector, docFreq, number of documents -
merge
Merges another. -
minDocFreq
public int minDocFreq()
-