AutoDiffProcessor

fun interface AutoDiffProcessor<T, I, out A : Algebra<I>>

A factory that converts an expression in autodiff variables to a DifferentiableExpression

Parameters

T

type of the constants for the expression

I

type of the actual expression state

A

type of expression algebra

Functions

Link copied to clipboard
abstract fun differentiate(function: A.() -> I): DifferentiableExpression<T>

Extensions

Link copied to clipboard
@JvmName(name = "genericChiSquaredExpression")
fun <T : Comparable<T>, I : Any, A : ExtendedField<I>, ExpressionAlgebra<T, I>> AutoDiffProcessor<T, I, A>.chiSquaredExpression(x: Buffer<T>, y: Buffer<T>, yErr: Buffer<T>, model: A.(I) -> I): DifferentiableExpression<T>

Generate a chi squared expression from given x-y-sigma data and inline model. Provides automatic differentiation.

Sources

Link copied to clipboard