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.
 
 
 

404 lines
18 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>GaussLegendreRule - 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/index.htm">MathNet.Numerics.Providers</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.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" class="current">GaussLegendreRule</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/NewtonCotesTrapeziumRule.htm">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> GaussLegendreRule</p>
<p><strong>Namespace</strong> MathNet.Numerics.Integration</p>
</div>
<div class="sub-header">
<div id="summary">Approximates a definite integral using an Nth order Gauss-Legendre rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly.
</div>
<h3 class="section">Constructors</h3>
<ul>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#.ctor">GaussLegendreRule</a></li>
</ul>
<h3 class="section">Static Functions</h3>
<ul>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#ContourIntegrate">ContourIntegrate</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Integrate">Integrate</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Integrate">Integrate</a></li>
</ul>
<h3 class="section">Methods</h3>
<ul>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Equals">Equals</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#GetAbscissa">GetAbscissa</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#GetHashCode">GetHashCode</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#GetType">GetType</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#GetWeight">GetWeight</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#ToString">ToString</a></li>
</ul>
<h3 class="section">Properties</h3>
<ul>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Abscissas">Abscissas</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#IntervalBegin">IntervalBegin</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#IntervalEnd">IntervalEnd</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Order">Order</a></li>
<li><a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm#Weights">Weights</a></li>
</ul>
</div>
<h3 class="section">Public Constructors</h3>
<div id=".ctor" class="method">
<h4> <strong>GaussLegendreRule</strong>(<span title="System.double">double</span> intervalBegin, <span title="System.double">double</span> intervalEnd, <span title="System.int">int</span> order)</h4>
<div class="content">Initializes a new instance of the <a href="../MathNet.Numerics.Integration/GaussLegendreRule.htm">GaussLegendreRule</a> class.
<div class="parameters">
<h5>Parameters</h5>
<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> order</h6>
<p class="comments">Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly. </p>
</div>
</div>
</div>
<h3 class="section">Public Static Functions</h3>
<div id="ContourIntegrate" class="method">
<h4><span title="System.Numerics.Complex">Complex</span> <strong>ContourIntegrate</strong>(<span title="System.Func<double, Complex>">Func&lt;double, Complex&gt;</span> f, <span title="System.double">double</span> invervalBegin, <span title="System.double">double</span> invervalEnd, <span title="System.int">int</span> order)</h4>
<div class="content">Approximates a definite integral using an Nth order Gauss-Legendre 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> invervalBegin</h6>
<p class="comments">Where the interval starts, exclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> invervalEnd</h6>
<p class="comments">Where the interval ends, exclusive and finite. </p>
<h6><code><span title="System.int">int</span></code> order</h6>
<p class="comments">Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly. </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="Integrate" class="method">
<h4><span title="System.double">double</span> <strong>Integrate</strong>(<span title="System.Func<double, double>">Func&lt;double, double&gt;</span> f, <span title="System.double">double</span> invervalBegin, <span title="System.double">double</span> invervalEnd, <span title="System.int">int</span> order)</h4>
<div class="content">Approximates a definite integral using an Nth order Gauss-Legendre 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> invervalBegin</h6>
<p class="comments">Where the interval starts, exclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> invervalEnd</h6>
<p class="comments">Where the interval ends, exclusive and finite. </p>
<h6><code><span title="System.int">int</span></code> order</h6>
<p class="comments">Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly. </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="Integrate" class="method">
<h4><span title="System.double">double</span> <strong>Integrate</strong>(<span title="System.Func<double, double, double>">Func&lt;double, double, double&gt;</span> f, <span title="System.double">double</span> invervalBeginA, <span title="System.double">double</span> invervalEndA, <span title="System.double">double</span> invervalBeginB, <span title="System.double">double</span> invervalEndB, <span title="System.int">int</span> order)</h4>
<div class="content">Approximates a 2-dimensional definite integral using an Nth order Gauss-Legendre rule over the rectangle [a,b] x [c,d].
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Func<double, double, double>">Func&lt;double, double, double&gt;</span></code> f</h6>
<p class="comments">The 2-dimensional analytic smooth function to integrate. </p>
<h6><code><span title="System.double">double</span></code> invervalBeginA</h6>
<p class="comments">Where the interval starts for the first (inside) integral, exclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> invervalEndA</h6>
<p class="comments">Where the interval ends for the first (inside) integral, exclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> invervalBeginB</h6>
<p class="comments">Where the interval starts for the second (outside) integral, exclusive and finite. </p>
<h6><code><span title="System.double">double</span></code> invervalEndB</h6>
<p class="comments">Where the interval ends for the second (outside) integral, exclusive and finite. </p>
<h6><code><span title="System.int">int</span></code> order</h6>
<p class="comments">Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly. </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>
<h3 class="section">Public Methods</h3>
<div id="Equals" class="method">
<h4><span title="System.bool">bool</span> <strong>Equals</strong>(<span title="System.object">object</span> obj)</h4>
<div class="content">
</div>
</div>
<div id="GetAbscissa" class="method">
<h4><span title="System.double">double</span> <strong>GetAbscissa</strong>(<span title="System.int">int</span> index)</h4>
<div class="content">Gettter for the ith abscissa.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> index</h6>
<p class="comments">Index of the ith abscissa. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>The ith abscissa. </p>
</div>
</div>
</div>
<div id="GetHashCode" class="method">
<h4><span title="System.int">int</span> <strong>GetHashCode</strong>()</h4>
<div class="content">
</div>
</div>
<div id="GetType" class="method">
<h4><span title="System.Type">Type</span> <strong>GetType</strong>()</h4>
<div class="content">
</div>
</div>
<div id="GetWeight" class="method">
<h4><span title="System.double">double</span> <strong>GetWeight</strong>(<span title="System.int">int</span> index)</h4>
<div class="content">Getter for the ith weight.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> index</h6>
<p class="comments">Index of the ith weight. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.double">double</span></code></h6>
<p>The ith weight. </p>
</div>
</div>
</div>
<div id="ToString" class="method">
<h4><span title="System.string">string</span> <strong>ToString</strong>()</h4>
<div class="content">
</div>
</div>
<h3 class="section">Public Properties</h3>
<div id="Abscissas" class="method">
<h4><span title="System.Double[]">Double[]</span> <strong>Abscissas</strong> get; </h4>
<div class="content">Getter that returns a clone of the array containing the abscissas.
</div>
</div>
<div id="IntervalBegin" class="method">
<h4><span title="System.double">double</span> <strong>IntervalBegin</strong> get; </h4>
<div class="content">Getter for the InvervalBegin.
</div>
</div>
<div id="IntervalEnd" class="method">
<h4><span title="System.double">double</span> <strong>IntervalEnd</strong> get; </h4>
<div class="content">Getter for the InvervalEnd.
</div>
</div>
<div id="Order" class="method">
<h4><span title="System.int">int</span> <strong>Order</strong> get; </h4>
<div class="content">Getter for the order.
</div>
</div>
<div id="Weights" class="method">
<h4><span title="System.Double[]">Double[]</span> <strong>Weights</strong> get; </h4>
<div class="content">Getter that returns a clone of the array containing the weights.
</div>
</div>
<div id="footer">
<p>Based on v5.0.0.0 of MathNet.Numerics (Math.NET Numerics)</p>
<p>Generated by <a href="http://docu.jagregory.com">docu</a></p>
</div>
</body>
</html>