Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.referencepoints
Class RandomGeneratedReferencePoints<O extends NumberVector<O,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.referencepoints.RandomGeneratedReferencePoints<O>
Type Parameters:
O - Object type
All Implemented Interfaces:
Parameterizable, ReferencePointsHeuristic<O>

public class RandomGeneratedReferencePoints<O extends NumberVector<O,?>>
extends AbstractLoggable
implements ReferencePointsHeuristic<O>

Reference points generated randomly within the used data space.

Author:
Erich Schubert

Field Summary
static OptionID N_ID
          OptionID for N_PARAM
private  IntParameter N_PARAM
          Parameter to specify the number of requested reference points.
protected  int samplesize
          Holds the value of N_PARAM.
protected  double scale
          Holds the value of SCALE_PARAM.
static OptionID SCALE_ID
          OptionID for SCALE_PARAM
private  DoubleParameter SCALE_PARAM
          Parameter for additional scaling of the space, to allow out-of-space reference points.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
RandomGeneratedReferencePoints(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
 Collection<O> getReferencePoints(Database<O> db)
          Get the reference points for the given database.
 
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, toString, wait, wait, wait
 

Field Detail

N_ID

public static final OptionID N_ID
OptionID for N_PARAM


N_PARAM

private final IntParameter N_PARAM
Parameter to specify the number of requested reference points.

Key: -generate.n


SCALE_ID

public static final OptionID SCALE_ID
OptionID for SCALE_PARAM


SCALE_PARAM

private final DoubleParameter SCALE_PARAM
Parameter for additional scaling of the space, to allow out-of-space reference points.

Key: -generate.scale


samplesize

protected int samplesize
Holds the value of N_PARAM.


scale

protected double scale
Holds the value of SCALE_PARAM.

Constructor Detail

RandomGeneratedReferencePoints

public RandomGeneratedReferencePoints(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
Method Detail

getReferencePoints

public Collection<O> getReferencePoints(Database<O> db)
Description copied from interface: ReferencePointsHeuristic
Get the reference points for the given database.

Specified by:
getReferencePoints in interface ReferencePointsHeuristic<O extends NumberVector<O,?>>
Parameters:
db - Database
Returns:
Collection of reference points.

Release 0.3 (2010-03-31_1612)