Integrator

Functions

Link copied to clipboard
@UnstableKMathAPI
fun <T : Any> UnivariateIntegrator<T>.integrate(vararg features: IntegrandFeature, function: (Double) -> T): UnivariateIntegrand<T>

A shortcut method to integrate a function with additional features. Range must be provided in features. The function is placed in the end position to allow passing a lambda.

@UnstableKMathAPI
fun <T : Any> UnivariateIntegrator<T>.integrate(range: ClosedRange<Double>, vararg features: IntegrandFeature, function: (Double) -> T): UnivariateIntegrand<T>

A shortcut method to integrate a function in range with additional features. The function is placed in the end position to allow passing a lambda.

@UnstableKMathAPI
fun <T : Any> UnivariateIntegrator<T>.integrate(range: ClosedRange<Double>, featureBuilder: MutableList<IntegrandFeature>.() -> Unit = {}, function: (Double) -> T): UnivariateIntegrand<T>

A shortcut method to integrate a function in range with additional features. The function is placed in the end position to allow passing a lambda.

Link copied to clipboard
abstract fun process(integrand: I): I

Runs one integration pass and return a new Integrand with a new set of features.