Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.parser.meta
Class RandomProjectionParser<V extends NumberVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.parser.meta.MetaParser<V>
          extended by de.lmu.ifi.dbs.elki.parser.meta.RandomProjectionParser<V>
Type Parameters:
V - the type of NumberVector contained in both the ParsingResult of the base parser and the projected ParsingResult of this ProjectionParser
All Implemented Interfaces:
Parser<V>, Parameterizable
Direct Known Subclasses:
DoubleVectorRandomProjectionParser, SparseFloatVectorRandomProjectionParser

public abstract class RandomProjectionParser<V extends NumberVector<V,?>>
extends MetaParser<V>

A RandomProjectionParser selects a subset of attributes randomly for projection of a ParsingResult.

The cardinality of the subset of attributes is specified as a parameter.

Author:
Arthur Zimek

Field Summary
protected  int k
          Holds the desired cardinality of the subset of attributes selected for projection.
static OptionID NUMBER_SELECTED_ATTRIBUTES_ID
          ID for the parameter NUMBER_SELECTED_ATTRIBUTES_PARAM.
private  IntParameter NUMBER_SELECTED_ATTRIBUTES_PARAM
          Parameter for the desired cardinality of the subset of attributes selected for projection.
protected  Random random
          Holds a random object.
 
Fields inherited from class de.lmu.ifi.dbs.elki.parser.meta.MetaParser
BASEPARSER_ID
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
RandomProjectionParser(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
 
Methods inherited from class de.lmu.ifi.dbs.elki.parser.meta.MetaParser
retrieveBaseParsingresult, toString
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.parser.Parser
parse
 

Field Detail

k

protected int k
Holds the desired cardinality of the subset of attributes selected for projection.


NUMBER_SELECTED_ATTRIBUTES_ID

public static final OptionID NUMBER_SELECTED_ATTRIBUTES_ID
ID for the parameter NUMBER_SELECTED_ATTRIBUTES_PARAM.


NUMBER_SELECTED_ATTRIBUTES_PARAM

private final IntParameter NUMBER_SELECTED_ATTRIBUTES_PARAM
Parameter for the desired cardinality of the subset of attributes selected for projection.

Key: -randomprojection.numberselected

Default: 1

Constraint: ≥1


random

protected final Random random
Holds a random object.

Constructor Detail

RandomProjectionParser

public RandomProjectionParser(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization

Release 0.3 (2010-03-31_1612)