Interface DoubleToRandomVariableFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DoubleToRandomVariableFunction
Definition of a function that maps a Double to a RandomVariable, with the possibility to throw an Exception.
Author:
Christian Fries
  • Method Summary

    Modifier and Type
    Method
    Description
    net.finmath.stochastic.RandomVariable
    apply​(double value)
    Applies this function to the given argument.
  • Method Details

    • apply

      net.finmath.stochastic.RandomVariable apply(double value) throws Exception
      Applies this function to the given argument.
      Parameters:
      value - the function argument
      Returns:
      the function result
      Throws:
      Exception - Thrown if function evaluation fails