Extreme Optimization™: Complexity made simple.

Numerical Components
for .NET

  • Home
  • •
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • •
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • •
  • Support
    • Frequently Asked Questions
    • QuickStart Samples
    • Sample Applications
    • Downloads
  • •
  • Blog
  • •
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Contact us
Introduction
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand ReferenceReference
  • Home
    • Features
    • Solutions
    • Documentation
    • QuickStart Samples
    • Sample Applications
    • Downloads
    • Technical Support
    • Download trial
    • How to buy
    • Blog
    • Company
    • Resources
  • Documentation
    • Introduction
    • Mathematics Library User's Guide
    • Vector and Matrix Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Reference
    • Extreme.Mathematics Namespace
    • Extreme.Mathematics.Algorithms Namespace
    • Extreme.Mathematics.Calculus Namespace
    • Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations Namespace
    • Extreme.Mathematics.Curves Namespace
    • Extreme.Mathematics.Curves.Nonlinear Namespace
    • Extreme.Mathematics.EquationSolvers Namespace
    • Extreme.Mathematics.Generic Namespace
    • Extreme.Mathematics.Generic.LinearAlgebra Namespace
    • Extreme.Mathematics.Generic.LinearAlgebra.Providers Namespace
    • Extreme.Mathematics.LinearAlgebra Namespace
    • Extreme.Mathematics.LinearAlgebra.Complex Namespace
    • Extreme.Mathematics.LinearAlgebra.IO Namespace
    • Extreme.Mathematics.LinearAlgebra.Providers Namespace
    • Extreme.Mathematics.LinearAlgebra.Sparse Namespace
    • Extreme.Mathematics.Optimization Namespace
    • Extreme.Mathematics.Optimization.LinearProgramming Namespace
    • Extreme.Mathematics.SignalProcessing Namespace
    • Extreme.Mathematics.SpecialFunctions Namespace
    • Extreme.Statistics Namespace
    • Extreme.Statistics.Distributions Namespace
    • Extreme.Statistics.Multivariate Namespace
    • Extreme.Statistics.Random Namespace
    • Extreme.Statistics.Tests Namespace
    • Extreme.Statistics.TimeSeriesAnalysis Namespace
  • Extreme.Mathematics.Calculus Namespace
    • AdaptiveIntegrator Class
    • AdaptiveIntegrator2D Class
    • AdaptiveIntegrator2DRule Enumeration
    • AdaptiveIntegrator3DRule Enumeration
    • AdaptiveIntegratorND Class
    • AdaptiveIntegratorNDRule Enumeration
    • DifferencesDirection Enumeration
    • GaussKronrodIntegrator Class
    • GaussKronrodIntegrator15 Class
    • GaussKronrodIntegrator21 Class
    • GaussKronrodIntegrator31 Class
    • GaussKronrodIntegrator41 Class
    • GaussKronrodIntegrator51 Class
    • GaussKronrodIntegrator61 Class
    • LeftPointIntegrator Class
    • MidpointIntegrator Class
    • NonAdaptiveGaussKronrodIntegrator Class
    • NumericalIntegrator Class
    • NumericalIntegrator2D Class
    • NumericalIntegratorND Class
    • Repeated1DIntegrator2D Class
    • Repeated1DIntegratorDirection Enumeration
    • RightPointIntegrator Class
    • RombergIntegrator Class
    • SimpsonIntegrator Class
    • TrapezoidIntegrator Class
  • AdaptiveIntegrator Class
    • Members
    • Constructors
    • Methods
    • Properties
Collapse imageExpand ImageCopy imageCopyHover image
       




AdaptiveIntegrator Class

Members  See Also 
Represents a numerical integrator that uses an adaptive algorithm based on a Gauss-Kronrod integration rule.

Namespace:  Extreme.Mathematics.Calculus
Assembly:  Extreme.Numerics.Net20 (in Extreme.Numerics.Net20.dll) Version: 3.6.10055.0 (3.6.10077.0)

Syntax

C#
public class AdaptiveIntegrator : NumericalIntegrator
Visual Basic (Declaration)
Public Class AdaptiveIntegrator _
	Inherits NumericalIntegrator
Visual C++
public ref class AdaptiveIntegrator : public NumericalIntegrator
F#
type AdaptiveIntegrator =  
    class
        inherit NumericalIntegrator
    end

Remarks

The AdaptiveIntegrator class provides the most robust, reliable, and in most cases the fastest numerical integration algorithm. It uses a simple integration rule to approximate the integral over subintervals. In each step, the interval with the largest estimated error is divided in two, and new approximations for these two subintervals are calculated. This process continues until the total estimated error over all intervals is within the desired tolerance.

AdaptiveIntegrator inherits from NumericalIntegrator, the abstractMustInheritabstractabstract (MustInherit in Visual Basic) base class for all numerical integration classes. It, in turn, inherits from the IterativeAlgorithm class. All properties of this class are also available. The AbsoluteTolerance and RelativeTolerance properties set the desired precision as specified by the ConvergenceCriterion property. The default value for both tolerances is SqrtEpsilon (roughly 10-8). MaxIterations sets the maximum number of iterations, which in this case is the maximum number of subintervals. The default value for this property is 5000. IterationsNeeded returns the actual number of iterations performed after the algorithm has completed.

The Integrate()()() method does the actual work of numerically integrating an integrand. It takes three parameters. The first parameter is a RealFunction delegate that specifies the function to integrate. The second and third parameters are Double values that specify the lower and upper bounds of the integration interval.

The IntegrationRule property lets you specify which Gauss-Kronrod integration rule to use to approximate integrals on a subinterval. The default is the 31-point rule for normal integrands, and the 15-point rule when singularities are expected, and when integrating over infinite intervals. For oscillating target functions, the higher order rules will tend to give better results.

Several enhancements make this the integration algorithm of choice, especially for 'difficult' target functions.

An extra property, UseExtrapolation, lets you specify whether special precautions should be taken to deal with singularities. If UseExtrapolation is true, an extrapolation algorithm is used to approximate the integral near a singularity or singularities. Because this option requires extra resources, it is recommended only for integrands that actually have singularities inside or at the boundaries of the integration interval.

The SetSingularities(array<Double>[]()[]) and GetSingularities()()() methods let you specify and retrieve the points inside the integration interval where the integrand has a singularity or a discontinuity. They are returned as a Double array containing the problem points. Extrapolation is used once again to approximate the integral near the singularity or singularities. Specifying the problem points in the target function can lead to speed-ups of several orders of magnitude.

Unlike other classes, this integrator can deal successfully with infinite integration intervals. Specify NegativeInfinity or PositiveInfinity for one or both bounds of the integration interval. Internally, the class transforms the infinite interval to a finite interval, and performs the integration of the transformed target function over the transformed interval.

Inheritance Hierarchy

System..::.Object
  Extreme.Mathematics.Algorithms..::.IterativeAlgorithm<(Of <(<'Double>)>)>
    Extreme.Mathematics.Calculus..::.NumericalIntegrator
      Extreme.Mathematics.Calculus..::.AdaptiveIntegrator

See Also

AdaptiveIntegrator Members
Extreme.Mathematics.Calculus Namespace

Send comments on this topic to support@extremeoptimization.com

Copyright © 2003-2010, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.