public static class RandomSubsetProjectionFamily.SubsetProjection extends Object implements RandomProjectionFamily.Projection
Modifier and Type | Field and Description |
---|---|
private int[] |
dims
Input dimensions.
|
Constructor and Description |
---|
RandomSubsetProjectionFamily.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 RandomSubsetProjectionFamily.SubsetProjection(int[] dims)
dims
- Data permutation.public double[] project(NumberVector in)
RandomProjectionFamily.Projection
project
in interface RandomProjectionFamily.Projection
in
- Input vectorpublic double[] project(NumberVector in, double[] buffer)
RandomProjectionFamily.Projection
project
in interface RandomProjectionFamily.Projection
in
- Input vectorbuffer
- Output bufferbuffer
public 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.