@DefaultImplementation(value=NoOpTruncator.class) public interface VectorTruncator
Component that truncates vectors.
Modifier and Type | Method and Description |
---|---|
void |
truncate(MutableSparseVector v)
Truncate a vector, removing any entries that do not satisfy some condition.
|
void truncate(MutableSparseVector v)
Truncate a vector, removing any entries that do not satisfy some condition. The vector is modified in place, i.e. the vector argument will be modified directly.
v
- The vector to truncate.