Home > Libraries > Criteria > least_square.m

iFit/least_square

PURPOSE ^

c=least_square(Signal, Error, Model)

SYNOPSIS ^

function c=least_square(Signal, Error, Model)

DESCRIPTION ^

 c=least_square(Signal, Error, Model)

 weighted least square criteria, which is also the Chi square
 the return value is a vector, and most optimizers use its sum (except LM).
 (|Signal-Model|/Error).^2

 A good fit corresponds with a criteria lower or equal to 1.

 <http://en.wikipedia.org/wiki/Least_squares>
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1