Class ProbFunctionPrettyPrint


public class ProbFunctionPrettyPrint extends ProbfunctionSwitch<String>
  • Constructor Details

    • ProbFunctionPrettyPrint

      public ProbFunctionPrettyPrint()
    • ProbFunctionPrettyPrint

      public ProbFunctionPrettyPrint(StringBuilder builder)
  • Method Details

    • caseBoxedPDF

      public String caseBoxedPDF(BoxedPDF object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Boxed PDF'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseBoxedPDF in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Boxed PDF'.
      See Also:
    • caseProbabilityMassFunction

      public <T> String caseProbabilityMassFunction(ProbabilityMassFunction<T> object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Probability Mass Function'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseProbabilityMassFunction in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Probability Mass Function'.
      See Also:
    • caseExponentialDistribution

      public String caseExponentialDistribution(ExponentialDistribution object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Exponential Distribution'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseExponentialDistribution in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Exponential Distribution'.
      See Also:
    • caseGammaDistribution

      public String caseGammaDistribution(GammaDistribution object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Gamma Distribution'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseGammaDistribution in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Gamma Distribution'.
      See Also:
    • caseLognormalDistribution

      public String caseLognormalDistribution(LognormalDistribution object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Lognormal Distribution'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseLognormalDistribution in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Lognormal Distribution'.
      See Also:
    • caseNormalDistribution

      public String caseNormalDistribution(NormalDistribution object)
      Description copied from class: ProbfunctionSwitch
      Returns the result of interpreting the object as an instance of 'Normal Distribution'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseNormalDistribution in class ProbfunctionSwitch<String>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Normal Distribution'.
      See Also: