java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.analysis.BetaPERT

public class BetaPERT extends Object
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

    Constructors
    Constructor
    Description
    BetaPERT(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

    Modifier and Type
    Method
    Description
    double[]
    sample(int n)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BetaPERT

      public BetaPERT(Estimate e)
    • 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 minimum
      mode - - the most probable value
      max - - the maximum
      lambda - - the confidence in the estimate (must be non-negative)
      rng - - the random generator to sample with, or null for the commons-math default (the previous, unseeded behavior)
  • Method Details

    • sample

      public double[] sample(int n)