public interface VectorTransformation extends InvertibleFunction<Long2DoubleMap,Long2DoubleMap>
Reversible in-place vector transformations.
Modifier and Type | Method and Description |
---|---|
double |
apply(long key,
double value)
Apply the transformation to an individual value.
|
MutableSparseVector |
apply(MutableSparseVector vector)
Apply the vector transformation in-place to a vector.
|
double |
unapply(long key,
double value)
Apply the inverse of the transformation to an individual value.
|
MutableSparseVector |
unapply(MutableSparseVector vector)
Unapply the vector transformation in-place on a transformed vector.
|
unapply
MutableSparseVector apply(MutableSparseVector vector)
Apply the vector transformation in-place to a vector.
vector
- The vector to transform.MutableSparseVector unapply(MutableSparseVector vector)
Unapply the vector transformation in-place on a transformed vector. In some cases, the unapplication may supply values for key domain members that do not have values.
vector
- The vector to transform.double apply(long key, double value)
Apply the transformation to an individual value.
value
- The value.double unapply(long key, double value)
Apply the inverse of the transformation to an individual value.
value
- The value.