comparison scripts/polynomial/polyfit.m @ 11587:c792872f8942

all script files: untabify and strip trailing whitespace
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:35:29 -0500
parents fd0a3ac60b0e
children 1577c6f80926
comparison
equal deleted inserted replaced
11586:12df7854fa7c 11587:c792872f8942
42 ## 42 ##
43 ## @item yf 43 ## @item yf
44 ## The values of the polynomial for each value of @var{x}. 44 ## The values of the polynomial for each value of @var{x}.
45 ## @end table 45 ## @end table
46 ## 46 ##
47 ## The second output may be used by @code{polyval} to calculate the 47 ## The second output may be used by @code{polyval} to calculate the
48 ## statistical error limits of the predicted values. 48 ## statistical error limits of the predicted values.
49 ## 49 ##
50 ## When the third output, @var{mu}, is present the 50 ## When the third output, @var{mu}, is present the
51 ## coefficients, @var{p}, are associated with a polynomial in 51 ## coefficients, @var{p}, are associated with a polynomial in
52 ## @var{xhat} = (@var{x}-@var{mu}(1))/@var{mu}(2). 52 ## @var{xhat} = (@var{x}-@var{mu}(1))/@var{mu}(2).
53 ## Where @var{mu}(1) = mean (@var{x}), and @var{mu}(2) = std (@var{x}). 53 ## Where @var{mu}(1) = mean (@var{x}), and @var{mu}(2) = std (@var{x}).
54 ## This linear transformation of @var{x} improves the numerical 54 ## This linear transformation of @var{x} improves the numerical
55 ## stability of the fit. 55 ## stability of the fit.