@Shareable public class ThresholdTruncator extends Object implements VectorTruncator, Serializable
VectorTruncator that will retain entries with values
that are accepted by some Threshold.| Constructor and Description |
|---|
ThresholdTruncator(Threshold threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
truncate(MutableSparseVector v)
Truncate a vector, removing any entries that do not satisfy some condition.
|
@Inject public ThresholdTruncator(Threshold threshold)
public void truncate(MutableSparseVector v)
VectorTruncatortruncate in interface VectorTruncatorv - The vector to truncate.