Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      SinglePeakWeightVector​(int m)
      constructor for weight vector with peak value
    • Method Summary

      Modifier and Type Method Description
      int getWeight​(int n)
      checks, whether an element got the highest rank
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SinglePeakWeightVector

        public SinglePeakWeightVector​(int m)
        constructor for weight vector with peak value
        Parameters:
        m - the value used to determine the weight of an object
    • Method Detail

      • getWeight

        public int getWeight​(int n)
        checks, whether an element got the highest rank
        Specified by:
        getWeight in interface WeightVector
        Parameters:
        n - the given parameter to compare with
        Returns:
        1 if highest, 0 otherwise