public class ScoreBounds
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Double |
maxPossibleScore |
java.lang.Double |
minPossibleScore |
int |
precision |
Constructor and Description |
---|
ScoreBounds()
Use this constructor for the default bounds of negative and positive infinity
|
ScoreBounds(java.util.ArrayList<VariableAttributes> variables,
int precision) |
ScoreBounds(java.lang.Double minPossibleScore,
java.lang.Double maxPossibleScore)
Use this constructor for providing starting values for an incremental update.
|
ScoreBounds(java.lang.Double minPossibleScore,
java.lang.Double maxPossibleScore,
int precision)
Use this constructor for providing starting values for an incremental update.
|
ScoreBounds(int precision)
Use this constructor for the default bounds of negative and positive infinity
It also allows precision to be set.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
checkConstraints(java.lang.Double value) |
java.lang.Double |
checkPrecisionOnly(java.lang.Double value) |
java.lang.Double |
getMaxPossibleScore() |
java.lang.Double |
getMinPossibleScore() |
void |
increment(java.lang.Double minValue,
java.lang.Double maxValue)
increment according to item scores
|
void |
incrementByItemScores(java.util.ArrayList<VariableAttributes> variables) |
void |
setConstraints(java.lang.Double minPossibleScore,
java.lang.Double maxPossibleScore)
Constraint the min and max possible values.
|
public java.lang.Double minPossibleScore
public java.lang.Double maxPossibleScore
public int precision
public ScoreBounds()
public ScoreBounds(int precision)
public ScoreBounds(java.lang.Double minPossibleScore, java.lang.Double maxPossibleScore)
minPossibleScore
- starting rho for smallest possible scoremaxPossibleScore
- starting rho for largest possible scorepublic ScoreBounds(java.lang.Double minPossibleScore, java.lang.Double maxPossibleScore, int precision)
minPossibleScore
- starting rho for smallest possible scoremaxPossibleScore
- starting rho for largest possible scoreprecision
- amount of precision in score displaypublic ScoreBounds(java.util.ArrayList<VariableAttributes> variables, int precision)
public void increment(java.lang.Double minValue, java.lang.Double maxValue)
minValue
- smallest possible item scoremaxValue
- largest possible item scorepublic final void incrementByItemScores(java.util.ArrayList<VariableAttributes> variables)
public void setConstraints(java.lang.Double minPossibleScore, java.lang.Double maxPossibleScore)
minPossibleScore
- maxPossibleScore
- public java.lang.Double getMaxPossibleScore()
public java.lang.Double getMinPossibleScore()
public java.lang.Double checkConstraints(java.lang.Double value)
public java.lang.Double checkPrecisionOnly(java.lang.Double value)