|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.sota.distances.DistanceManagerFactory
public final class DistanceManagerFactory
Field Summary | |
---|---|
static String |
COS_DIST
Flag for cosinus distance. |
static String |
EUCLIDEAN_DIST
Flag for euclidean distance. |
static String |
MANHATTAN_DIST
Flag for korrelation distance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EUCLIDEAN_DIST
public static final String COS_DIST
public static final String MANHATTAN_DIST
Method Detail |
---|
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 FuzzyIntervalCell
s or
DataCell
s 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 FuzzyIntervalCell
s.offset
- A particular offset use by i.e. the
CosinusDistanceManager
DistanceManager
, 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
DataCell
s containing numbers, not
FuzzyIntervalCell
s. 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 FuzzyIntervalCell
s or
DataCell
s 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 FuzzyIntervalCell
s.
DistanceManager
, specified by the
distance parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |