Package elki.data.projection.random
Class RandomSubsetProjectionFamily.SubsetProjection
- java.lang.Object
-
- elki.data.projection.random.RandomSubsetProjectionFamily.SubsetProjection
-
- All Implemented Interfaces:
RandomProjectionFamily.Projection
- Enclosing class:
- RandomSubsetProjectionFamily
public static class RandomSubsetProjectionFamily.SubsetProjection extends java.lang.Object implements RandomProjectionFamily.Projection
Random subset projection.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
dims
Input dimensions.
-
Constructor Summary
Constructors Constructor Description SubsetProjection(int[] dims)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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
public double[] project(NumberVector in)
Description copied from interface:RandomProjectionFamily.Projection
Project a single vector.- Specified by:
project
in interfaceRandomProjectionFamily.Projection
- Parameters:
in
- Input vector- Returns:
- Projected vector
-
project
public double[] project(NumberVector in, double[] buffer)
Description copied from interface:RandomProjectionFamily.Projection
Project a single vector, into the given buffer.- Specified by:
project
in interfaceRandomProjectionFamily.Projection
- Parameters:
in
- Input vectorbuffer
- Output buffer- Returns:
buffer
-
getOutputDimensionality
public int getOutputDimensionality()
Description copied from interface:RandomProjectionFamily.Projection
Get the output dimensionality.- Specified by:
getOutputDimensionality
in interfaceRandomProjectionFamily.Projection
- Returns:
- Output dimensionality
-
-