chiSquared

fun Fitting.chiSquared(x: Buffer<Double>, y: Buffer<Double>, yErr: Buffer<Double>, model: DerivativeStructureField.(x: DerivativeStructure) -> DerivativeStructure): DifferentiableExpression<Double, Expression<Double>>
fun Fitting.chiSquared(x: Iterable<Double>, y: Iterable<Double>, yErr: Iterable<Double>, model: DerivativeStructureField.(x: DerivativeStructure) -> DerivativeStructure): DifferentiableExpression<Double, Expression<Double>>

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