Package jline.api.mam

Class Map_bernsteinKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static MatrixCell map_bernstein(Function1<Double, Double> f, Integer n) Converts a distribution to a MAP via Bernstein polynomial approximation.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • map_bernstein

         final static MatrixCell map_bernstein(Function1<Double, Double> f, Integer n)

        Converts a distribution to a MAP via Bernstein polynomial approximation.

        Uses the Bernstein approximation of order n to construct a MAP representation of a continuous distribution specified by its probability density function.

        The caller should rescale the resulting MAP to the desired mean using map_scale.

        Parameters:
        f - the probability density function as a lambda (Double) -> Double
        n - the number of phases for the approximation (default: 20)
        Returns:

        a MatrixCell containing the MAP representation {D0, D1}