databionics.math
Class DistanceFactory

java.lang.Object
  extended by databionics.math.DistanceFactory

public class DistanceFactory
extends java.lang.Object

Get a distance function by name.


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
DistanceFactory()
           
 
Method Summary
static cern.colt.function.VectorVectorFunction getDistance(java.lang.String name)
          Get a distance function by name.
static cern.colt.function.VectorVectorFunction getDistance(java.lang.String name, boolean ignoreNaN)
          Get a distance function by name with flag whether to ignore NaN.
static cern.colt.function.ThresholdVectorVectorFunction getThresholdDistance(java.lang.String name)
          Get a thresholded distance function by name.
static cern.colt.function.ThresholdVectorVectorFunction getThresholdDistance(java.lang.String name, boolean ignoreNaN)
          Get a thresholded distance function by name with flag whether to ignore NaN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

DistanceFactory

public DistanceFactory()
Method Detail

getDistance

public static cern.colt.function.VectorVectorFunction getDistance(java.lang.String name)
Get a distance function by name.

Parameters:
name - name of the distance function.

getDistance

public static cern.colt.function.VectorVectorFunction getDistance(java.lang.String name,
                                                                  boolean ignoreNaN)
Get a distance function by name with flag whether to ignore NaN.

Parameters:
name - name of the distance function.
ignoreNaN - whether to ignore missing values.

getThresholdDistance

public static cern.colt.function.ThresholdVectorVectorFunction getThresholdDistance(java.lang.String name)
Get a thresholded distance function by name. Thresholded distance function can be given a value that is to be beaten. As soon as the current sum is over the threshold calculations are stoppped. Further, the outer power for L_p distances is skipped.

Parameters:
name - name of the distance function.

getThresholdDistance

public static cern.colt.function.ThresholdVectorVectorFunction getThresholdDistance(java.lang.String name,
                                                                                    boolean ignoreNaN)
Get a thresholded distance function by name with flag whether to ignore NaN. Thresholded distance function can be given a value that is to be beaten. As soon as the current sum is over the threshold calculations are stoppped. Further, the outer power for L_p distances is skipped.

Parameters:
name - name of the distance function.
ignoreNaN - whether to ignore missing values.


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.