source file of the GNU LilyPond music typesetter
- (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "least-squares.hh"
*coef = 0.0;
*offset = 0.;
- Real den = (N *sqx - sqr (sx));
+ Real den = (N * sqx - sqr (sx));
if (!N || !den)
{
programming_error ("minimise_least_squares (): Nothing to minimise");
}
else
{
- *coef = (N *sxy - sx*sy) / den;
+ *coef = (N *sxy - sx * sy) / den;
*offset = (sy - (*coef) * sx) / N;
}
}