public enum ScoreBasedWeighting extends Enum<ScoreBasedWeighting>
Enum Constant and Description |
---|
GAUSSIAN
In this case the weight of each path 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 by the paths scores.
|
SOFTMIN
This is a softmin weighting of the paths scores.
|
Modifier and Type | Method and Description |
---|---|
double[] |
calculateWeighting(Collection<Double> scores) |
double[] |
calculateWeighting(double[] scores)
This calculates the normalized weights (between 0 and 1 and adding up
to 1) for the given scores.
|
static ScoreBasedWeighting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScoreBasedWeighting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScoreBasedWeighting LINEAR
public static final ScoreBasedWeighting SOFTMIN
public static final ScoreBasedWeighting GAUSSIAN
public static ScoreBasedWeighting[] values()
for (ScoreBasedWeighting c : ScoreBasedWeighting.values()) System.out.println(c);
public static ScoreBasedWeighting 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(Collection<Double> scores)
public double[] calculateWeighting(double[] scores)
scores
- an array of scores.Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, 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/