AutoDiffProcessor
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>
Content copied to clipboard
Extensions
Link copied to clipboard
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>
Content copied to clipboard
Generate a chi squared expression from given x-y-sigma data and inline model. Provides automatic differentiation.
fun <I : Any, A : ExtendedField<I>, ExpressionAlgebra<Double, I>> AutoDiffProcessor<Double, I, A>.chiSquaredExpression(x: Buffer<Double>, y: Buffer<Double>, yErr: Buffer<Double>, model: A.(I) -> I): DifferentiableExpression<Double>
Content copied to clipboard