Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

400 lines
21 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>NewtonCotesTrapeziumRule - Math.NET Numerics Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="../main.css"/>
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="../js/navigation.js"></script>
<script type="text/javascript" src="../js/example.js"></script>
</head>
<body><div id="namespaces">
<h2 class="fixed">Namespaces</h2>
<div class="scroll">
<ul>
<li>
<a href="../MathNet.Numerics/index.htm">MathNet.Numerics</a>
</li>
<li>
<a href="../MathNet.Numerics.Differentiation/index.htm">MathNet.Numerics.Differentiation</a>
</li>
<li>
<a href="../MathNet.Numerics.Distributions/index.htm">MathNet.Numerics.Distributions</a>
</li>
<li>
<a href="../MathNet.Numerics.Financial/index.htm">MathNet.Numerics.Financial</a>
</li>
<li>
<a href="../MathNet.Numerics.IntegralTransforms/index.htm">MathNet.Numerics.IntegralTransforms</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/index.htm" class="current">MathNet.Numerics.Integration</a>
</li>
<li>
<a href="../MathNet.Numerics.Interpolation/index.htm">MathNet.Numerics.Interpolation</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra/index.htm">MathNet.Numerics.LinearAlgebra</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex/index.htm">MathNet.Numerics.LinearAlgebra.Complex</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Complex.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex32/index.htm">MathNet.Numerics.LinearAlgebra.Complex32</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex32.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Complex32.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Double/index.htm">MathNet.Numerics.LinearAlgebra.Double</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Double.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Double.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Factorization/index.htm">MathNet.Numerics.LinearAlgebra.Factorization</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Single/index.htm">MathNet.Numerics.LinearAlgebra.Single</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Single.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Single.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Storage/index.htm">MathNet.Numerics.LinearAlgebra.Storage</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearRegression/index.htm">MathNet.Numerics.LinearRegression</a>
</li>
<li>
<a href="../MathNet.Numerics.OdeSolvers/index.htm">MathNet.Numerics.OdeSolvers</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization/index.htm">MathNet.Numerics.Optimization</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.LineSearch/index.htm">MathNet.Numerics.Optimization.LineSearch</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.ObjectiveFunctions/index.htm">MathNet.Numerics.Optimization.ObjectiveFunctions</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.TrustRegion/index.htm">MathNet.Numerics.Optimization.TrustRegion</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.Common.Cuda/index.htm">MathNet.Numerics.Providers.Common.Cuda</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.Common.Mkl/index.htm">MathNet.Numerics.Providers.Common.Mkl</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.Common.OpenBlas/index.htm">MathNet.Numerics.Providers.Common.OpenBlas</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.FourierTransform/index.htm">MathNet.Numerics.Providers.FourierTransform</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.LinearAlgebra/index.htm">MathNet.Numerics.Providers.LinearAlgebra</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.LinearAlgebra.OpenBlas/index.htm">MathNet.Numerics.Providers.LinearAlgebra.OpenBlas</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.SparseSolver/index.htm">MathNet.Numerics.Providers.SparseSolver</a>
</li>
<li>
<a href="../MathNet.Numerics.Random/index.htm">MathNet.Numerics.Random</a>
</li>
<li>
<a href="../MathNet.Numerics.RootFinding/index.htm">MathNet.Numerics.RootFinding</a>
</li>
<li>
<a href="../MathNet.Numerics.Statistics/index.htm">MathNet.Numerics.Statistics</a>
</li>
<li>
<a href="../MathNet.Numerics.Statistics.Mcmc/index.htm">MathNet.Numerics.Statistics.Mcmc</a>
</li>
</ul>
</div>
</div><div id="types">
<h2 class="fixed">Types in MathNet.Numerics.Integration</h2>
<div class="scroll">
<ul>
<li>
<a href="../MathNet.Numerics.Integration/DoubleExponentialTransformation.htm">DoubleExponentialTransformation</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/GaussKronrodRule.htm">GaussKronrodRule</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm">GaussLegendreRule</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm" class="current">NewtonCotesTrapeziumRule</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/SimpsonRule.htm">SimpsonRule</a>
</li>
</ul>
</div>
</div>
<div class="header">
<p class="class"><strong>Type</strong> NewtonCotesTrapeziumRule</p>
<p><strong>Namespace</strong> MathNet.Numerics.Integration</p>
</div>
<div class="sub-header">
<div id="summary">Approximation algorithm for definite integrals by the Trapezium rule of the Newton-Cotes family.
</div>
<h3 class="section">Static Functions</h3>
<ul>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#ContourIntegrateAdaptive">ContourIntegrateAdaptive</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#ContourIntegrateAdaptiveTransformedOdd">ContourIntegrateAdaptiveTransformedOdd</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#ContourIntegrateComposite">ContourIntegrateComposite</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#ContourIntegrateTwoPoint">ContourIntegrateTwoPoint</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#IntegrateAdaptive">IntegrateAdaptive</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#IntegrateAdaptiveTransformedOdd">IntegrateAdaptiveTransformedOdd</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#IntegrateComposite">IntegrateComposite</a></li>
<li><a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm#IntegrateTwoPoint">IntegrateTwoPoint</a></li>
</ul>
</div>
<h3 class="section">Public Static Functions</h3>
<div id="ContourIntegrateAdaptive" class="method">
<h4><span title="System.Numerics.Complex">Complex</span> <strong>ContourIntegrateAdaptive</strong>(<span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.double">double</span> targetError)</h4>
<div class="content">Adaptive approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span></code> f</h6>
<p class="comments">The analytic smooth complex function to integrate, define don real domain. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> targetError</h6>
<p class="comments">The expected accuracy of the approximation. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.Complex">Complex</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="ContourIntegrateAdaptiveTransformedOdd" class="method">
<h4><span title="System.Numerics.Complex">Complex</span> <strong>ContourIntegrateAdaptiveTransformedOdd</strong>(<span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span> levelAbscissas, <span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span> levelWeights, <span title="System.double">double</span> levelOneStep, <span title="System.double">double</span> targetRelativeError)</h4>
<div class="content">Adaptive approximation of the definite integral by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span></code> f</h6>
<p class="comments">The analytic smooth complex function to integrate, defined on the real domain. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span></code> levelAbscissas</h6>
<p class="comments">Abscissa vector per level provider. </p>
<h6><code><span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span></code> levelWeights</h6>
<p class="comments">Weight vector per level provider. </p>
<h6><code><span title="System.double">double</span></code> levelOneStep</h6>
<p class="comments">First Level Step </p>
<h6><code><span title="System.double">double</span></code> targetRelativeError</h6>
<p class="comments">The expected relative accuracy of the approximation. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.Complex">Complex</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="ContourIntegrateComposite" class="method">
<h4><span title="System.Numerics.Complex">Complex</span> <strong>ContourIntegrateComposite</strong>(<span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.int">int</span> numberOfPartitions)</h4>
<div class="content">Composite N-point approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span></code> f</h6>
<p class="comments">The analytic smooth complex function to integrate, defined on real domain. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.int">int</span></code> numberOfPartitions</h6>
<p class="comments">Number of composite subdivision partitions. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.Complex">Complex</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="ContourIntegrateTwoPoint" class="method">
<h4><span title="System.Numerics.Complex">Complex</span> <strong>ContourIntegrateTwoPoint</strong>(<span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd)</h4>
<div class="content">Direct 2-point approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span></code> f</h6>
<p class="comments">The analytic smooth complex function to integrate, defined on real domain. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.Complex">Complex</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="IntegrateAdaptive" class="method">
<h4><span title="System.double">double</span> <strong>IntegrateAdaptive</strong>(<span title="System.Func<double, double>">Func&lt;double, double&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.double">double</span> targetError)</h4>
<div class="content">Adaptive approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, double>">Func&lt;double, double&gt;</span></code> f</h6>
<p class="comments">The analytic smooth function to integrate. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> targetError</h6>
<p class="comments">The expected accuracy of the approximation. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="IntegrateAdaptiveTransformedOdd" class="method">
<h4><span title="System.double">double</span> <strong>IntegrateAdaptiveTransformedOdd</strong>(<span title="System.Func<double, double>">Func&lt;double, double&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span> levelAbscissas, <span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span> levelWeights, <span title="System.double">double</span> levelOneStep, <span title="System.double">double</span> targetRelativeError)</h4>
<div class="content">Adaptive approximation of the definite integral by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, double>">Func&lt;double, double&gt;</span></code> f</h6>
<p class="comments">The analytic smooth function to integrate. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span></code> levelAbscissas</h6>
<p class="comments">Abscissa vector per level provider. </p>
<h6><code><span title="System.Collections.Generic.IEnumerable<Double[]>">IEnumerable&lt;Double[]&gt;</span></code> levelWeights</h6>
<p class="comments">Weight vector per level provider. </p>
<h6><code><span title="System.double">double</span></code> levelOneStep</h6>
<p class="comments">First Level Step </p>
<h6><code><span title="System.double">double</span></code> targetRelativeError</h6>
<p class="comments">The expected relative accuracy of the approximation. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="IntegrateComposite" class="method">
<h4><span title="System.double">double</span> <strong>IntegrateComposite</strong>(<span title="System.Func<double, double>">Func&lt;double, double&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.int">int</span> numberOfPartitions)</h4>
<div class="content">Composite N-point approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, double>">Func&lt;double, double&gt;</span></code> f</h6>
<p class="comments">The analytic smooth function to integrate. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
<h6><code><span title="System.int">int</span></code> numberOfPartitions</h6>
<p class="comments">Number of composite subdivision partitions. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="IntegrateTwoPoint" class="method">
<h4><span title="System.double">double</span> <strong>IntegrateTwoPoint</strong>(<span title="System.Func<double, double>">Func&lt;double, double&gt;</span> f, <span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd)</h4>
<div class="content">Direct 2-point approximation of the definite integral in the provided interval by the trapezium rule.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, double>">Func&lt;double, double&gt;</span></code> f</h6>
<p class="comments">The analytic smooth function to integrate. </p>
<h6><code><span title="System.double">double</span></code> intervalBegin</h6>
<p class="comments">Where the interval starts, inclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> intervalEnd</h6>
<p class="comments">Where the interval stops, inclusive and finite. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>Approximation of the finite integral in the given interval. </p>
</div>
</div>
</div>
<div id="footer">
<p>Based on v4.13.0.0 of MathNet.Numerics (Math.NET Numerics)</p>
<p>Generated by <a href="http://docu.jagregory.com">docu</a></p>
</div>
</body>
</html>