public enum DissimilarityWeighting extends Enum<DissimilarityWeighting>
Enum Constant and Description |
---|
GAUSSIAN
In this case the weight of each dissimilarity is determined to be the value of the Gaussian
probability density function with zero mean and standard deviation sigma at its score.
|
LINEAR
This is a linear weighting of the input dissimilarities.
|
SOFTMIN
This is a softmin weighting of the dissimilarities.
|
Modifier and Type | Method and Description |
---|---|
double[] |
calculateWeighting(double[] d)
This calculates the normalized weights (between 0 and 1 and adding up to 1) for the given
dissimilarities.
|
double[] |
calculateWeighting(List<Double> scores) |
static DissimilarityWeighting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DissimilarityWeighting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DissimilarityWeighting LINEAR
public static final DissimilarityWeighting SOFTMIN
public static final DissimilarityWeighting GAUSSIAN
public static DissimilarityWeighting[] values()
for (DissimilarityWeighting c : DissimilarityWeighting.values()) System.out.println(c);
public static DissimilarityWeighting 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 double[] calculateWeighting(@NonNull double[] d)
d
- an array of dissimilarities.Copyright (C) 2016-2018 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/