Package elki.data.projection.random
Interface RandomProjectionFamily.Projection
-
- All Known Implementing Classes:
AbstractRandomProjectionFamily.MatrixProjection
,RandomSubsetProjectionFamily.SubsetProjection
,SimplifiedRandomHyperplaneProjectionFamily.SignedProjection
- Enclosing interface:
- RandomProjectionFamily
public static interface RandomProjectionFamily.Projection
Interface for projection instances (not thread safe). To enable the use of internal buffers for faster multiplication, this code is currently not thread safe.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getOutputDimensionality()
Get the output dimensionality.double[]
project(NumberVector in)
Project a single vector.double[]
project(NumberVector in, double[] buffer)
Project a single vector, into the given buffer.
-
-
-
Method Detail
-
project
double[] project(NumberVector in)
Project a single vector.- Parameters:
in
- Input vector- Returns:
- Projected vector
-
project
double[] project(NumberVector in, double[] buffer)
Project a single vector, into the given buffer.- Parameters:
in
- Input vectorbuffer
- Output buffer- Returns:
buffer
-
getOutputDimensionality
int getOutputDimensionality()
Get the output dimensionality.- Returns:
- Output dimensionality
-
-