kmath/kmath-functions/space.kscience.kmath.integration/integrate.html

71 lines
14 KiB
HTML
Raw Normal View History

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>integrate</title>
</head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../";</script><script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script><link href="../../styles/style.css" rel="Stylesheet"><link href="../../styles/logo-styles.css" rel="Stylesheet"><link href="../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../scripts/clipboard.js" async></script><script type="text/javascript" src="../../scripts/navigation-loader.js" async></script><script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script><script type="text/javascript" src="../../scripts/main.js" async></script>
<div id="container">
<div id="leftColumn"><a href="../../index.html">
<div id="logo"></div>
</a>
<div id="paneSearch"></div>
<div id="sideMenu"></div>
</div>
<div id="main">
<script type="text/javascript" src="../../scripts/main.js"></script><div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="main-content" id="content" pageids="kmath-functions::space.kscience.kmath.integration//integrate/space.kscience.kmath.integration.GaussIntegrator[TypeParam(bounds=[kotlin.Any])]#kotlin.ranges.ClosedRange[kotlin.Double]#kotlin.Int#kotlin.Int#kotlin.Array[space.kscience.kmath.integration.IntegrandFeature]#kotlin.Function1[kotlin.Double,TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration//-597741372">
<div class="navigation-wrapper" id="navigation-wrapper">
<div class="breadcrumbs"><a href="../index.html">kmath-functions</a>/<a href="index.html">space.kscience.kmath.integration</a>/<a href="integrate.html">integrate</a></div>
<div class="pull-right d-flex">
<div id="searchBar"></div>
</div>
</div>
<div class="cover ">
<h1 class="cover"><span>integrate</span></h1>
</div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="-gauss-integrator/index.html">GaussIntegrator</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(range: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-closed-range/index.html">ClosedRange</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>&gt;, order: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 10, intervals: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 10, vararg features: <a href="-integrand-feature/index.html">IntegrandFeature</a>, function: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>) -&gt; <a href="integrate.html">T</a>): <a href="-univariate-integrand/index.html">UnivariateIntegrand</a>&lt;<a href="integrate.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">Integrate using <a href="integrate.html">intervals</a> segments with Gauss-Legendre rule of <a href="integrate.html">order</a> order.</p></div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-comparable/index.html">Comparable</a>&lt;<a href="integrate.html">T</a>&gt;&gt; <a href="../space.kscience.kmath.functions/-piecewise-polynomial/index.html">PiecewisePolynomial</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(algebra: <a href="../../kmath-core/space.kscience.kmath.operations/-field/index.html">Field</a>&lt;<a href="integrate.html">T</a>&gt;): <a href="../space.kscience.kmath.functions/-piecewise-polynomial/index.html">PiecewisePolynomial</a>&lt;<a href="integrate.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">Compute analytical indefinite integral of this <a href="../space.kscience.kmath.functions/-piecewise-polynomial/index.html">PiecewisePolynomial</a>, keeping all intervals intact</p></div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-comparable/index.html">Comparable</a>&lt;<a href="integrate.html">T</a>&gt;&gt; <a href="../space.kscience.kmath.functions/-piecewise-polynomial/index.html">PiecewisePolynomial</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(algebra: <a href="../../kmath-core/space.kscience.kmath.operations/-field/index.html">Field</a>&lt;<a href="integrate.html">T</a>&gt;, range: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-closed-range/index.html">ClosedRange</a>&lt;<a href="integrate.html">T</a>&gt;): <a href="integrate.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">Compute definite integral of given <a href="../space.kscience.kmath.functions/-piecewise-polynomial/index.html">PiecewisePolynomial</a> piece by piece in a given <a href="integrate.html">range</a> Requires <a href="-univariate-integration-nodes/index.html">UnivariateIntegrationNodes</a> or <a href="-integration-range/index.html">IntegrationRange</a> and <a href="-integrand-max-calls/index.html">IntegrandMaxCalls</a></p></div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="index.html#1666897239%2FClasslikes%2F-597741372">UnivariateIntegrator</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(vararg features: <a href="-integrand-feature/index.html">IntegrandFeature</a>, function: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>) -&gt; <a href="integrate.html">T</a>): <a href="-univariate-integrand/index.html">UnivariateIntegrand</a>&lt;<a href="integrate.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">A shortcut method to integrate a <a href="integrate.html">function</a> with additional <a href="integrate.html">features</a>. Range must be provided in features. The <a href="integrate.html">function</a> is placed in the end position to allow passing a lambda.</p></div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="index.html#1666897239%2FClasslikes%2F-597741372">UnivariateIntegrator</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(range: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-closed-range/index.html">ClosedRange</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>&gt;, vararg features: <a href="-integrand-feature/index.html">IntegrandFeature</a>, function: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>) -&gt; <a href="integrate.html">T</a>): <a href="-univariate-integrand/index.html">UnivariateIntegrand</a>&lt;<a href="integrate.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">A shortcut method to integrate a <a href="integrate.html">function</a> in <a href="integrate.html">range</a> with additional <a href="integrate.html">features</a>. The <a href="integrate.html">function</a> is placed in the end position to allow passing a lambda.</p></div>
<div class="divergent-group" data-filterable-current=":kmath-functions:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-functions:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="../../kmath-core/space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html">UnstableKMathAPI</a>()</div></div>fun &lt;<a href="integrate.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="index.html#1666897239%2FClasslikes%2F-597741372">UnivariateIntegrator</a>&lt;<a href="integrate.html">T</a>&gt;.<a href="integrate.html">integrate</a>(range: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-closed-range/index.html">ClosedRange</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>&gt;, featureBuilder: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-integrand-feature/index.html">IntegrandFeature</a>&gt;.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, function: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>) -&gt; <a href="integrate.html">T</a>): <a href="-univariate-integrand/index.html">UnivariateIntegrand</a>&lt;<a href="integrate.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<p class="paragraph">A shortcut method to integrate a <a href="integrate.html">function</a> in <a href="integrate.html">range</a> with additional features. The <a href="integrate.html">function</a> is placed in the end position to allow passing a lambda.</p></div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
</div>
</div>
</body></html>