public final class DistanceManagerFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COS_DIST
Flag for cosinus distance.
|
static String |
EUCLIDEAN_DIST
Flag for euclidean distance.
|
static String |
MANHATTAN_DIST
Flag for korrelation distance.
|
| Modifier and Type | Method and Description |
|---|---|
static DistanceManager |
createDistanceManager(String distance)
Creates a new instance extending the
DistanceManager
interface. |
static DistanceManager |
createDistanceManager(String distance,
boolean fuzzy)
Creates a new instance extending the
DistanceManager
interface. |
static DistanceManager |
createDistanceManager(String distance,
boolean fuzzy,
double offset)
Creates a new instance extending the
DistanceManager
interface. |
public static final String EUCLIDEAN_DIST
public static final String COS_DIST
public static final String MANHATTAN_DIST
public static final DistanceManager createDistanceManager(String distance, boolean fuzzy, double offset)
DistanceManager
interface. According to the kind of distance a particular
DistanceManager is returned. If you want to compute for
instance euclidean distances, then use
DistanceManagerFactory.EUCLIDEAN_DIST as distance parameter
and the EuclideanDistanceManager is returned. If an unvalid
kind of distance is given null will be returned.
The fuzzy parameter specifies if the created DistanceManager
will compute distances between FuzzyIntervalCells or
DataCells containing numbers.
The offset parameter sepcifies a particular offset used i.e. by the
CosinusDistanceManager.distance - Specifies the concrete DistanceManager
implementation to be returned.fuzzy - If true the DistanceManager will compute
distances between FuzzyIntervalCells.offset - A particular offset use by i.e. the
CosinusDistanceManagerDistanceManager, specified by the
distance parameter.public static final DistanceManager createDistanceManager(String distance)
DistanceManager
interface. According to the kind of distance a particular
DistanceManager is returned. If you want to compute for
instance euclidean distances, then use
DistanceManagerFactory.EUCLIDEAN_DIST as distance parameter
and the EuclideanDistanceManager is returned. If an unvalid
kind of distance is given null will be returned.
The returned DistanceManager computes distances between
DataCells containing numbers, not
FuzzyIntervalCells. The offset is set to 1 by default.distance - Specifies the concrete DistanceManager
implementation to be returned.DistanceManager, specified by the
distance parameter.public static final DistanceManager createDistanceManager(String distance, boolean fuzzy)
DistanceManager
interface. According to the kind of distance a particular
DistanceManager is returned. If you want to compute for
instance euclidean distances, then use
DistanceManagerFactory.EUCLIDEAN_DIST as distance parameter
and the EuclideanDistanceManager is returned. If an unvalid
kind of distance is given null will be returned.
The fuzzy parameter specifies if the created DistanceManager
will compute distances between FuzzyIntervalCells or
DataCells containing numbers.
The offset is set to 1 by default.distance - Specifies the concrete DistanceManager
implementation to be returned.fuzzy - If true the DistanceManager will compute
distances between FuzzyIntervalCells.DistanceManager, specified by the
distance parameter.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.