Class Erlang

java.lang.Object
org.oristool.math.function.GEN
org.oristool.math.function.Erlang
All Implemented Interfaces:
Function, PartitionedFunction

public class Erlang extends GEN
The Erlang PDF.
  • Constructor Details

    • Erlang

      public Erlang(Variable x, int k, BigDecimal lambda)
      Builds the function lambda^k x^(k-1) e^(-lambda x) / (k-1)! over [0, +infty).
      Parameters:
      x - variable
      k - shape
      lambda - rate
    • Erlang

      public Erlang(Erlang erlang)
      Builds a copy of the input Erlang.
      Parameters:
      erlang - input Erlang
  • Method Details

    • getShape

      public int getShape()
      Returns the shape parameter.
      Returns:
      shape parameter
    • getLambda

      public BigDecimal getLambda()
      Returns the rate.
      Returns:
      rate parameter
    • getVariable

      public Variable getVariable()
      Returns the variable name.
      Returns:
      variable name