public static class RandomSubsetProjectionFamily.SubsetProjection extends java.lang.Object implements RandomProjectionFamily.Projection
| Modifier and Type | Field and Description |
|---|---|
private int[] |
dims
Input dimensions.
|
| Constructor and Description |
|---|
SubsetProjection(int[] dims)
Constructor.
|
| Modifier and Type | Method and 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.
|
public SubsetProjection(int[] dims)
dims - Data permutation.public double[] project(NumberVector in)
RandomProjectionFamily.Projectionproject in interface RandomProjectionFamily.Projectionin - Input vectorpublic double[] project(NumberVector in, double[] buffer)
RandomProjectionFamily.Projectionproject in interface RandomProjectionFamily.Projectionin - Input vectorbuffer - Output bufferbufferpublic int getOutputDimensionality()
RandomProjectionFamily.ProjectiongetOutputDimensionality in interface RandomProjectionFamily.ProjectionCopyright © 2019 ELKI Development Team. License information.