Documentation of 'net.finmath.integration.MonteCarloIntegrator' Java class
MonteCarloIntegrator
net.finmath.integration

Class MonteCarloIntegrator

  • All Implemented Interfaces:
    RealIntegralInterface


    public class MonteCarloIntegrator
    extends AbstractRealIntegral
    A simple integrator using Monte-Carlo integration. The constructor has an optional argument to allow parallel function evaluation. In that case, the integration rule uses Java 8 parallel streams to evaluate.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MonteCarloIntegrator(double lowerBound, double upperBound, int numberOfEvaluationPoints)
      Create an integrator using Simpson's rule.
      MonteCarloIntegrator(double lowerBound, double upperBound, int numberOfEvaluationPoints, boolean useParallelEvaluation)
      Create an integrator using Simpson's rule.
    • Constructor Detail

      • MonteCarloIntegrator

        public MonteCarloIntegrator(double lowerBound,
                                    double upperBound,
                                    int numberOfEvaluationPoints,
                                    boolean useParallelEvaluation)
        Create an integrator using Simpson's rule.
        Parameters:
        lowerBound - Lower bound of the integral.
        upperBound - Upper bound of the integral.
        numberOfEvaluationPoints - Maximum number of evaluation points to be used, must be greater or equal to 3.
        useParallelEvaluation - If true, the integration rule will perform parallel evaluation of the integrand.
      • MonteCarloIntegrator

        public MonteCarloIntegrator(double lowerBound,
                                    double upperBound,
                                    int numberOfEvaluationPoints)
        Create an integrator using Simpson's rule.
        Parameters:
        lowerBound - Lower bound of the integral.
        upperBound - Upper bound of the integral.
        numberOfEvaluationPoints - Maximum number of evaluation points to be used.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.