|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.services.outranking.Discordance
public class Discordance
| Constructor Summary | |
|---|---|
Discordance()
|
|
| Method Summary | |
|---|---|
double |
discordancePairwize(double eval1,
double eval2,
Criterion criterion,
Criterion.PreferenceDirection direction,
double p,
Double v)
Evaluates the discordance between two alternatives having the given evaluations. |
Map<Criterion,IAltZeroToOneMatrix> |
discordances(IProblemData data,
ICriteriaWithThresholds thresholds)
Computes the discordance matrixes for each criterion in the given data. |
Double |
getSmallestSep()
Retrieves the smallest difference, in absolute value, between any veto and any difference of performance used in the computation, if sharp vetoes are to be used. |
boolean |
isSharpVetoes()
|
void |
setSharpVetoes(boolean sharpVetoes)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Discordance()
| Method Detail |
|---|
public Map<Criterion,IAltZeroToOneMatrix> discordances(IProblemData data,
ICriteriaWithThresholds thresholds)
throws InvalidInputException
Computes the discordance matrixes for each criterion in the given data.
For the input to be valid, all evaluations must be given, all preference directions must be defined, the set of
criteria on which thresholds are given must be a subset of the set of criteria in the problem data, the veto
thresholds must be strictly greater than the preference threshold for each criteria. Otherwise, an
InvalidInputException is thrown.
data - not null.thresholds - not null, only the preferences and vetoes thresholds are used, some may be missing. If
this object uses sharp vetoes, only the vetoes are used.
null, one entry per criteria, no null value.
InvalidInputException - if the input is not valid.
public double discordancePairwize(double eval1,
double eval2,
Criterion criterion,
Criterion.PreferenceDirection direction,
double p,
Double v)
throws InvalidInputException
eval1 - the evaluation of the first alternative from the point of view of the considered criterion.eval2 - the evaluation of the second alternative from the point of view of the considered criterion.criterion - only used for the error message string in case of exception, may be null.direction - not null.p - the preference threshold of the considered criterion.v - the veto threshold of the considered criterion. Must be greater than the preference threshold. If
null, the returned discordance is necessarily zero.
InvalidInputException - if the veto threshold is lower than or equal to the preference threshold.public boolean isSharpVetoes()
public void setSharpVetoes(boolean sharpVetoes)
public Double getSmallestSep()
null if no computation have been preformed or no values were found when asked for a
computation or sharp vetoes are not used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||