Class SinglePeakWeightVector
- java.lang.Object
- 
- net.sf.tweety.preferences.aggregation.SinglePeakWeightVector
 
- 
- All Implemented Interfaces:
- WeightVector
 
 public class SinglePeakWeightVector extends java.lang.Object implements WeightVector The single peak implementation of the weight vector, where only the highest rated value in each preference order scores (1,0,0,0,0,0)- Author:
- bwolf
 
- 
- 
Field SummaryFields Modifier and Type Field Description private intmgiven value of the peak element
 - 
Constructor SummaryConstructors Constructor Description SinglePeakWeightVector(int m)constructor for weight vector with peak value
 - 
Method SummaryModifier and Type Method Description intgetWeight(int n)checks, whether an element got the highest rank
 
- 
- 
- 
Method Detail- 
getWeightpublic int getWeight(int n) checks, whether an element got the highest rank- Specified by:
- getWeightin interface- WeightVector
- Parameters:
- n- the given parameter to compare with
- Returns:
- 1 if highest, 0 otherwise
 
 
- 
 
-