org.decisiondeck.xmcda_oo.services.sorting
Class StandardizeProfiles

java.lang.Object
  extended by org.decisiondeck.xmcda_oo.services.sorting.StandardizeProfiles

public class StandardizeProfiles
extends Object

Use this only when using true criteria, i.e. having no indifference or preference thresholds. Is meaningless when a preference or indifference threshold is used with the criteria. If using veto thresholds, the standardization works only for sharp vetoes. If all these conditions are fulfilled, the resulting profiles and vetoes are equivalent (will give the same results when a sorting of the appropriate mode is applied) to the original ones.


Constructor Summary
StandardizeProfiles()
           
 
Method Summary
 double getInStandardForm(double value, IntegerStepScaleToDel scale, SortingMode sortingMode)
           
 IEvaluations getInStandardForm(IRdEvaluations profilesEvaluations, Map<Criterion,IntegerStepScaleToDel> scales, SortingMode sortingMode)
          Please use only in the absence of veto thresholds.
 boolean isCrossBoundaries()
           
 void setCrossBoundaries(boolean crossBoundaries)
          Allows or disallows this object to cross scale's boundaries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardizeProfiles

public StandardizeProfiles()
Method Detail

getInStandardForm

public IEvaluations getInStandardForm(IRdEvaluations profilesEvaluations,
                                      Map<Criterion,IntegerStepScaleToDel> scales,
                                      SortingMode sortingMode)
Please use only in the absence of veto thresholds.

Parameters:
profilesEvaluations - the profiles evaluations to standardize.
scales - the scales to take into account. Must be defined on the same set of criteria as the evaluations.
sortingMode - the mode to take into account when standardizing.
Returns:
a new evaluation matrix containing the values standardized according to the given scale and mode.

getInStandardForm

public double getInStandardForm(double value,
                                IntegerStepScaleToDel scale,
                                SortingMode sortingMode)
Parameters:
value - if outside the scale's boundaries, and this object is asked to stay inside boundaries (the default), the value is returned untouched.
scale - the scale to use.
sortingMode - the sorting mode to take into account when transforming the value.
Returns:
the value in standard form considering the given scale.

isCrossBoundaries

public boolean isCrossBoundaries()

setCrossBoundaries

public void setCrossBoundaries(boolean crossBoundaries)
Allows or disallows this object to cross scale's boundaries. If false, this object will never return values outside of the relevant scale's boundaries.

Parameters:
crossBoundaries - true to allow this object to cross boundaries.


Copyright © 2011. All Rights Reserved.