|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.xmcda_oo.utils.EvaluationsStatistics
public class EvaluationsStatistics
An object that contains statistics about evaluations. Immutable.
Note that if the evaluations bound to this object change, the statistics do not change and thus become invalid.
| Constructor Summary | |
|---|---|
EvaluationsStatistics(IRdEvaluations evaluations)
Computes statistics about the given evaluations. |
|
| Method Summary | |
|---|---|
double |
getAntiIdeal(Criterion criterion,
Criterion.PreferenceDirection preferenceDirection)
Finds the worst evaluation in the bound evaluations on the given criterion when the statistics were computed, i.e., the smallest if the criterion is to be maximized, the highest if it should be minimal. |
Set<Criterion> |
getCriteria()
Retrieves a copy, or read-only view, of the criteria for which statistics are available. |
double |
getIdeal(Criterion criterion,
Criterion.PreferenceDirection direction)
Finds the best evaluation that existed in the bound evaluations on the given criterion when the statistics were computed, i.e., the highest if the criterion is to be maximized, the smallest if it should be minimal. |
double |
getMaxDifference(Criterion criterion)
Finds the maximal evaluation difference in the given matrix on the given criterion, i.e., the highest difference between any two evaluations on the given criterion. |
double |
getMaximum(Criterion criterion)
Finds the highest evaluation that existed in the bound evaluations on the given criterion when the statistics were computed. |
Double |
getMinDifference(Criterion criterion)
Finds the minimal evaluation difference in the given matrix on the given criterion, i.e., the smallest difference between any two different evaluation values on the given criterion. |
double |
getMinimum(Criterion criterion)
Finds the lowest evaluation that existed in the bound evaluations on the given criterion when the statistics were computed. |
NavigableSet<Double> |
getSortedEvaluations(Criterion criterion)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluationsStatistics(IRdEvaluations evaluations)
evaluations - not null.| Method Detail |
|---|
public Set<Criterion> getCriteria()
null.public NavigableSet<Double> getSortedEvaluations(Criterion criterion)
public double getAntiIdeal(Criterion criterion,
Criterion.PreferenceDirection preferenceDirection)
Finds the worst evaluation in the bound evaluations on the given criterion when the statistics were computed, i.e., the smallest if the criterion is to be maximized, the highest if it should be minimal.
criterion - the criterion to find the anti-ideal for. Must have a preference direction. Must be in this object.
public double getMinimum(Criterion criterion)
Finds the lowest evaluation that existed in the bound evaluations on the given criterion when the statistics were computed.
criterion - not null, must be in this object.
public double getMaxDifference(Criterion criterion)
Finds the maximal evaluation difference in the given matrix on the given criterion, i.e., the highest difference between any two evaluations on the given criterion.
criterion - the criterion to find the maximal difference for. Must be in this object.
public Double getMinDifference(Criterion criterion)
Finds the minimal evaluation difference in the given matrix on the given criterion, i.e., the smallest difference between any two different evaluation values on the given criterion.
criterion - the criterion to find the minimal difference for. Must be in this object.
null iff all
evaluations on the given criterion are identical.
public double getIdeal(Criterion criterion,
Criterion.PreferenceDirection direction)
Finds the best evaluation that existed in the bound evaluations on the given criterion when the statistics were computed, i.e., the highest if the criterion is to be maximized, the smallest if it should be minimal.
criterion - the criterion to find the ideal for. Must have a preference direction. Must be in this object.
public double getMaximum(Criterion criterion)
Finds the highest evaluation that existed in the bound evaluations on the given criterion when the statistics were computed.
criterion - not null, must be in this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||