net.finmath.plots.DoubleToRandomVariableFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib-plot-extensions Show documentation
Show all versions of finmath-lib-plot-extensions Show documentation
finmath lib plot extensions provide convenient
plotting methods by providing consistent wrappers
to plot libraries (like JFreeChart or JavaFX).
The newest version!
/*
* (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
*
* Created on 15 Feb 2020
*/
package net.finmath.plots;
import net.finmath.stochastic.RandomVariable;
/**
* Definition of a function that maps a Double to a RandomVariable, with the possibility
* to throw an Exception.
*
* @author Christian Fries
*/
@FunctionalInterface
public interface DoubleToRandomVariableFunction {
/**
* Applies this function to the given argument.
*
* @param value the function argument
* @return the function result
* @throws Exception Thrown if function evaluation fails
*/
RandomVariable apply(double value) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy