chiSquared

fun <T : Any, I : Any, A : ExtendedField<I>, ExpressionAlgebra<T, I>> FunctionOptimization<T>.chiSquared(autoDiff: AutoDiffProcessor<T, I, A, Expression<T>>, x: Buffer<T>, y: Buffer<T>, yErr: Buffer<T>, model: A.(I) -> I)

Define a chi-squared-based objective function