chiSquaredExpression

@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>(source)

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

WARNING All elements of yErr must be positive.