org.decisiondeck.jmcda.services.sorting.assignments
Class ExcludeLeastCredibilities

java.lang.Object
  extended by org.decisiondeck.jmcda.services.sorting.assignments.ExcludeLeastCredibilities

public class ExcludeLeastCredibilities
extends Object


Constructor Summary
ExcludeLeastCredibilities(IOrderedAssignmentsWithCredibilitiesRead assignments)
           
 
Method Summary
 NavigableMap<Double,IOrderedAssignmentsWithCredibilitiesRead> getByCredibilityLevel()
           The bound assignments must have at least one assigned alternative.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludeLeastCredibilities

public ExcludeLeastCredibilities(IOrderedAssignmentsWithCredibilitiesRead assignments)
Method Detail

getByCredibilityLevel

public NavigableMap<Double,IOrderedAssignmentsWithCredibilitiesRead> getByCredibilityLevel()

The bound assignments must have at least one assigned alternative. The sum of the credibilities, for each alternative, must be constant. TODO CHECK THIS - To account for possible numerical imprecision, the minimal difference between any two credibility values must be 10 times greater than the #DEFAULT_TOLERANCE, or all values must be equal (only one value used).

This method computes a set of new assignments objects from the assignments bound to this object. The new assignments are ordered by credibility level. The assignments object corresponding to a given credibility level comprises, for each assigned alternative, the credibilities given in input, excluded the credibilities less or equal to the complementary of the cedibility level to the sum of credibilities. For example, at a credibility level of 8, assuming a constant sum of 10, those credibilites of 2 or lower are excluded.

The highest excluded credibility level in the returned map is the one just lower to the minimum over all alternatives of the highest credibility value in the input assignments of that alternative. Equivalently, it is the highest credibility value such that every alternative in the bound assignments have at least one category associated to at least that value of credibility. The lowest credibility level in the returned map is the sum of credibilities minus that highest excluded credibility level value.

Returns:
not null, not empty.


Copyright © 2011. All Rights Reserved.