Class RandomMapping

java.lang.Object
org.variantsync.boosting.eval.util.RandomMapping

public class RandomMapping extends Object
Class for determining random mapping distributions.
  • Constructor Details

    • RandomMapping

      public RandomMapping()
  • Method Details

    • distributeMappings

      public static void distributeMappings(List<org.variantsync.boosting.product.Variant> preproducts, Map<String,org.variantsync.vevos.simulation.variability.pc.groundtruth.GroundTruth> gtMap, int percentage, int strip)
      Distributes mappings to products based on a given percentage. This method takes a list of preproducts, a map of ground truth data, a percentage value, and a strip value as input parameters. It then iterates through each product in the preproducts list, retrieves the ground truth data for that product from the gtMap, and applies a distribution based on the given percentage and strip values.
      Parameters:
      preproducts - a list of products to distribute mappings to
      gtMap - a map containing ground truth data for each product
      percentage - the percentage of mapping to apply
      strip - the strip value to use for distribution