GaussIntegrator
class GaussIntegrator<T : Any>(algebra: Field<T>) : Integrator<UnivariateIntegrand<T>>
Content copied to clipboard
A simple one-pass integrator based on Gauss rule Following integrand features are accepted:
GaussIntegratorRuleFactory—a factory for computing the Gauss integration rule. By default, uses GaussLegendreRuleFactory.
IntegrationRange—the univariate range of integration. By default, uses
0..1
interval.IntegrandMaxCalls—the maximum number of function calls during integration. For non-iterative rules, always uses the maximum number of points. By default, uses 10 points.
UnivariateIntegrandRanges—set of ranges and number of points per range. Defaults to given IntegrationRange and IntegrandMaxCalls.
Constructors
GaussIntegrator
Link copied to clipboard
Types
Functions
process
Link copied to clipboard
open override fun process(integrand: UnivariateIntegrand<T>): UnivariateIntegrand<T>
Content copied to clipboard
Runs one integration pass and return a new Integrand with a new set of features.
Properties
Extensions
integrate
Link copied to clipboard
fun <T : Any> GaussIntegrator<T>.integrate(range: ClosedRange<Double>, order: Int = 10, intervals: Int = 10, vararg features: IntegrandFeature, function: (Double) -> T): UnivariateIntegrand<T>
Content copied to clipboard
Sources
common source
Link copied to clipboard