Modifier and Type | Field and Description |
---|---|
protected static Prototype |
basePrototype
Base prototype of the sortings.
|
protected static int |
numberOfInputs
Number of inputs of the prototypes (used to optimize calculations).
|
Constructor and Description |
---|
Distance(Prototype p)
Construct a new Distance object.
|
Modifier and Type | Method and Description |
---|---|
static double |
absoluteDistance(Prototype one,
Prototype two)
Compute the Absolute Distance between two prototypes.
|
int |
compare(Prototype one,
Prototype two)
Overloading of the compare function.
|
static double |
d(Prototype one,
Prototype two)
Compute the Euclidean Distance between two prototypes.
|
static double |
distance(Prototype one,
Prototype two)
Compute the Euclidean Distance between two prototypes.
|
static double |
dSquared(Prototype one,
Prototype two)
Compute the Squared euclidean distance between two prototypes.
|
static double |
euclideanDistance(Prototype one,
Prototype two)
Compute the Euclidean Distance between two prototypes.
|
static void |
setNumberOfInputs(int _n)
Assigns the number of inputs of the prototypes.
|
void |
setPrototypeToCompare(Prototype p)
Assigns base prototype.
|
static double |
squaredEuclideanDistance(Prototype one,
Prototype two)
Compute the squared euclidean distance between two prototypes.
|
protected static Prototype basePrototype
protected static int numberOfInputs
public Distance(Prototype p)
p
- Base prototype.public static void setNumberOfInputs(int _n)
_n
- Number of inputs of the prototypes.public void setPrototypeToCompare(Prototype p)
p
- New base prototype.public static double squaredEuclideanDistance(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.public static double dSquared(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.public static double d(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.public static double euclideanDistance(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.public static double distance(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.public static double absoluteDistance(Prototype one, Prototype two)
one
- One prototype.two
- Other prototype.