public static class AbstractRandomProjectionFamily.MatrixProjection extends Object implements RandomProjectionFamily.Projection
Modifier and Type | Field and Description |
---|---|
(package private) Vector |
buf
Projection buffer.
|
(package private) Matrix |
matrix
Projection matrix.
|
(package private) double[] |
vals
Projection buffer values.
|
Constructor and Description |
---|
MatrixProjection(Matrix matrix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getOutputDimensionality()
Get the output dimensionality.
|
double[] |
project(NumberVector in)
Project a single vector.
|
Matrix matrix
Vector buf
double[] vals
public MatrixProjection(Matrix matrix)
matrix
- Projection matrix.public double[] project(NumberVector in)
RandomProjectionFamily.Projection
project
in interface RandomProjectionFamily.Projection
in
- Input vectorpublic int getOutputDimensionality()
RandomProjectionFamily.Projection
getOutputDimensionality
in interface RandomProjectionFamily.Projection
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.