V
- Vector typepublic class RandomProjection<V extends NumberVector> extends Object implements Projection<V,V>
AchlioptasRandomProjectionFamily
), but also as
suggested for locality sensitive hashing (LSH).Modifier and Type | Class and Description |
---|---|
static class |
RandomProjection.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private int |
dimensionality
Output dimensionality.
|
private NumberVector.Factory<V> |
factory
Vector factory.
|
private RandomProjectionFamily |
family
Random projection family
|
private static Logging |
LOG
Class logger.
|
private RandomProjectionFamily.Projection |
projection
Projection matrix.
|
Constructor and Description |
---|
RandomProjection(int dimensionality,
RandomProjectionFamily family)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputDataTypeInformation()
Input type information.
|
SimpleTypeInformation<V> |
getOutputDataTypeInformation()
Output type restriction
|
void |
initialize(SimpleTypeInformation<V> in)
Initialize
|
V |
project(V data)
Project a single instance.
|
private static final Logging LOG
private NumberVector.Factory<V extends NumberVector> factory
private int dimensionality
private RandomProjectionFamily.Projection projection
private RandomProjectionFamily family
public RandomProjection(int dimensionality, RandomProjectionFamily family)
dimensionality
- Desired dimensionalityfamily
- Random projection familypublic void initialize(SimpleTypeInformation<V> in)
Projection
initialize
in interface Projection<V extends NumberVector,V extends NumberVector>
in
- Data type to use for projecting.public V project(V data)
Projection
project
in interface Projection<V extends NumberVector,V extends NumberVector>
data
- Data to projectpublic TypeInformation getInputDataTypeInformation()
Projection
getInputDataTypeInformation
in interface Projection<V extends NumberVector,V extends NumberVector>
public SimpleTypeInformation<V> getOutputDataTypeInformation()
Projection
getOutputDataTypeInformation
in interface Projection<V extends NumberVector,V extends NumberVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.