public enum DistanceMeasures extends Enum<DistanceMeasures>
Enum Constant and Description |
---|
Canberra |
Chebyshev |
EarthMovers |
Euclidean |
Manhattan |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.math3.ml.distance.DistanceMeasure |
getDistanceMeasure() |
static DistanceMeasures |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceMeasures[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceMeasures Euclidean
public static final DistanceMeasures Chebyshev
public static final DistanceMeasures EarthMovers
public static final DistanceMeasures Manhattan
public static final DistanceMeasures Canberra
public static DistanceMeasures[] values()
for (DistanceMeasures c : DistanceMeasures.values()) System.out.println(c);
public static DistanceMeasures valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.apache.commons.math3.ml.distance.DistanceMeasure getDistanceMeasure()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.