Class RandomMapping
java.lang.Object
org.variantsync.boosting.eval.util.RandomMapping
Class for determining random mapping distributions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 togtMap
- a map containing ground truth data for each productpercentage
- the percentage of mapping to applystrip
- the strip value to use for distribution
-