Example usage for org.apache.commons.math3.distribution EnumeratedDistribution subclass-usage

List of usage examples for org.apache.commons.math3.distribution EnumeratedDistribution subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.math3.distribution EnumeratedDistribution subclass-usage.

Usage

From source file io.druid.benchmark.datagen.SequentialDistribution.java

public class SequentialDistribution extends EnumeratedDistribution {

    private Integer start;
    private Integer end;
    private List<Object> enumeratedValues;
    private int counter;

From source file org.apache.druid.benchmark.datagen.EnumeratedTreeDistribution.java

/**
 * EnumeratedDistrubtion's sample() method does a linear scan through the array of probabilities.
 *
 * This is too slow with high cardinality value sets, so this subclass overrides sample() to use
 * a TreeMap instead.
 */

From source file org.apache.druid.benchmark.datagen.SequentialDistribution.java

public class SequentialDistribution extends EnumeratedDistribution {

    private Integer start;
    private Integer end;
    private List<Object> enumeratedValues;
    private int counter;

From source file io.druid.benchmark.datagen.EnumeratedTreeDistribution.java

public class EnumeratedTreeDistribution<T> extends EnumeratedDistribution {
    private TreeMap<Double, Integer> probabilityRanges;
    private List<Pair<T, Double>> normalizedPmf;

    public EnumeratedTreeDistribution(final List<Pair<T, Double>> pmf) {
        super(pmf);