Class BetaPERT
java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.analysis.BetaPERT
Implementation of the beta pert distribution as in R, using the beta distribution from the apache commons project.
https://cran.r-project.org/web/packages/mc2d/mc2d.pdf
-
Constructor Summary
ConstructorsConstructorDescriptionBetaPERT(double min, double mode, double max) BetaPERT(double min, double mode, double max, double lambda) BetaPERT(double min, double mode, double max, double lambda, org.apache.commons.math3.random.RandomGenerator rng) Create a BetaPERT distribution that samples through the provided random generator, enabling deterministic (seeded) sampling in tests. -
Method Summary
-
Constructor Details
-
BetaPERT
-
BetaPERT
public BetaPERT(double min, double mode, double max) -
BetaPERT
public BetaPERT(double min, double mode, double max, double lambda) -
BetaPERT
public BetaPERT(double min, double mode, double max, double lambda, org.apache.commons.math3.random.RandomGenerator rng) Create a BetaPERT distribution that samples through the provided random generator, enabling deterministic (seeded) sampling in tests.- Parameters:
min- - the minimummode- - the most probable valuemax- - the maximumlambda- - the confidence in the estimate (must be non-negative)rng- - the random generator to sample with, ornullfor the commons-math default (the previous, unseeded behavior)
-
-
Method Details
-
sample
public double[] sample(int n)
-