Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.referencepoints
Class RandomSampleReferencePoints<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.RandomSampleReferencePoints<O>
Type Parameters:
O - Vector type
All Implemented Interfaces:
Parameterizable, ReferencePointsHeuristic<O>

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

Random-Sampling strategy for picking reference points.

Author:
Erich Schubert

Field Summary
private static double log4
          Constant used in choosing optimal table sizes
static OptionID N_ID
          OptionID for N_PARAM
private  IntParameter N_PARAM
          Parameter to specify the sample size.
private  int samplesize
          Holds the value of N_PARAM.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
RandomSampleReferencePoints(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


log4

private static final double log4
Constant used in choosing optimal table sizes


N_PARAM

private final IntParameter N_PARAM
Parameter to specify the sample size.

Key: -sample.n


samplesize

private int samplesize
Holds the value of N_PARAM.

Constructor Detail

RandomSampleReferencePoints

public RandomSampleReferencePoints(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)