java.lang.Object
de.uni_trier.wi2.procake.similarity.base.collection.ListWeightUtils

public abstract class ListWeightUtils extends Object
This class provides special methods to work with ListWeights and to manipulate them.
Author:
Justin Weich
  • Constructor Details

    • ListWeightUtils

      public ListWeightUtils()
  • Method Details

    • arrangeAndNormalizeWeights

      public static void arrangeAndNormalizeWeights(LinkedList<ListWeight> listWeights, double defaultWeight)
      The method sorts the current ListWeights and fills up missing ListWeights. Additionally, the values of the ListWeights are normalized.
      Parameters:
      listWeights - the current ListWeights
      defaultWeight - the default weight which should be the weight for filled ListWeights
    • checkIntervalOverlap

      public static void checkIntervalOverlap(LinkedList<ListWeight> listWeights, ListWeight weightToCheck)
      The method checks if the ListWeight which should be added is overlapping with already added ListWeights, is that the case an exception is thrown.
      Parameters:
      listWeights - the current ListWeights
      weightToCheck - the ListWeight which should be added