T
- public abstract class DoubleFVSimilarityFunction<T> extends Object implements Function<List<T>,SparseMatrix>
SimilarityClusterer
around a datasetModifier and Type | Field and Description |
---|---|
protected double[][] |
feats |
Constructor and Description |
---|
DoubleFVSimilarityFunction(FeatureExtractor<DoubleFV,T> extractor) |
Modifier and Type | Method and Description |
---|---|
SparseMatrix |
apply(List<T> in)
Apply the function to the input argument and return the result.
|
protected void |
prepareFeats() |
protected abstract SparseMatrix |
similarity() |
protected double[][] feats
public DoubleFVSimilarityFunction(FeatureExtractor<DoubleFV,T> extractor)
extractor
- public SparseMatrix apply(List<T> in)
Function
apply
in interface Function<List<T>,SparseMatrix>
in
- the input objectprotected void prepareFeats()
protected abstract SparseMatrix similarity()