| 
 | 
 | |||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,R>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<V,D,CollectionResult<DoubleVector>>
de.lmu.ifi.dbs.elki.algorithm.statistics.DistanceStatisticsWithClasses<V,D>
V - Vector typeD - Distance type@Title(value="Distance Histogram") @Description(value="Computes a histogram over the distances occurring in the data set.") public class DistanceStatisticsWithClasses<V extends DatabaseObject,D extends NumberDistance<D,?>>
Algorithm to gather statistics over the distance distribution in the data set.
| Field Summary | |
|---|---|
| private  boolean | exactSampling | 
| private  Flag | EXACT_FLAGFlag to enable sampling Key: -diststat.exact | 
| static OptionID | EXACT_IDOptionID for EXACT_FLAG | 
| static OptionID | HISTOGRAM_BINS_IDOptionID for HISTOGRAM_BINS_OPTION | 
| private  IntParameter | HISTOGRAM_BINS_OPTIONOption to configure the number of bins to use. | 
| private  int | numbinNumber of bins to use in sampling. | 
| private  boolean | samplingSampling | 
| private  Flag | SAMPLING_FLAGFlag to enable sampling Key: -diststat.sampling | 
| static OptionID | SAMPLING_IDOptionID for SAMPLING_FLAG | 
| Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm | 
|---|
| DISTANCE_FUNCTION_ID, DISTANCE_FUNCTION_PARAM | 
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable | 
|---|
| debug, logger | 
| Constructor Summary | |
|---|---|
| DistanceStatisticsWithClasses(Parameterization config)Constructor, adhering to Parameterizable | |
| Method Summary | |
|---|---|
| private  DoubleMinMax | exactMinMax(Database<V> database,
            DistanceFunction<V,D> distFunc) | 
| protected  CollectionResult<DoubleVector> | runInTime(Database<V> database)Iterates over all points in the database. | 
| private  DoubleMinMax | sampleMinMax(Database<V> database,
             DistanceFunction<V,D> distFunc) | 
| private  void | shrinkHeap(TreeSet<FCPair<Double,Integer>> hotset,
           int k) | 
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm | 
|---|
| getDistanceFactory, getDistanceFunction | 
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm | 
|---|
| isTime, isVerbose, run, setTime, setVerbose | 
| 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 | 
|---|
public static final OptionID EXACT_ID
EXACT_FLAG
private final Flag EXACT_FLAG
 Key: -diststat.exact
 
public static final OptionID SAMPLING_ID
SAMPLING_FLAG
private final Flag SAMPLING_FLAG
 Key: -diststat.sampling
 
public static final OptionID HISTOGRAM_BINS_ID
HISTOGRAM_BINS_OPTION
private final IntParameter HISTOGRAM_BINS_OPTION
 Key: -diststat.bins
 
private int numbin
private boolean sampling
private boolean exact
| Constructor Detail | 
|---|
public DistanceStatisticsWithClasses(Parameterization config)
Parameterizable
config - Parameterization| Method Detail | 
|---|
protected CollectionResult<DoubleVector> runInTime(Database<V> database)
                                            throws IllegalStateException
runInTime in class AbstractAlgorithm<V extends DatabaseObject,CollectionResult<DoubleVector>>database - the database to run the algorithm on
IllegalStateException - if the algorithm has not been initialized
         properly (e.g. the setParameters(String[]) method has been failed
         to be called).
private DoubleMinMax sampleMinMax(Database<V> database,
                                  DistanceFunction<V,D> distFunc)
private DoubleMinMax exactMinMax(Database<V> database,
                                 DistanceFunction<V,D> distFunc)
private void shrinkHeap(TreeSet<FCPair<Double,Integer>> hotset,
                        int k)
| 
 | 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||