Interface MonteCarloSimulator.PathPayoff
- Enclosing class:
MonteCarloSimulator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Payoff of one simulated path.
-
Method Summary
-
Method Details
-
payoff
double payoff(double[][] path) Payoff of one simulated path.- Parameters:
path-path[i][j]= price of asset i at grid point j, j = 0 (spot) .. steps (maturity). The array is reused by the caller thread; copy anything you keep.- Returns:
- the (undiscounted) payoff, finite
-