Mercurial > hg > octave-nkf
comparison scripts/polynomial/polyval.m @ 19791:fe689210525c gui-release
maint: Periodic merge of stable to gui-release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:05:42 -0500 |
parents | 446c46af4b42 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
19787:6d75f1683ce8 | 19791:fe689210525c |
---|---|
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {@var{y} =} polyval (@var{p}, @var{x}) | 20 ## @deftypefn {Function File} {@var{y} =} polyval (@var{p}, @var{x}) |
21 ## @deftypefnx {Function File} {@var{y} =} polyval (@var{p}, @var{x}, [], @var{mu}) | 21 ## @deftypefnx {Function File} {@var{y} =} polyval (@var{p}, @var{x}, [], @var{mu}) |
22 ## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}) | 22 ## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}) |
23 ## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}, @var{mu}) | 23 ## @deftypefnx {Function File} {[@var{y}, @var{dy}] =} polyval (@var{p}, @var{x}, @var{s}, @var{mu}) |
24 ## | 24 ## |
25 ## Evaluate the polynomial @var{p} at the specified values of @var{x}. When | 25 ## Evaluate the polynomial @var{p} at the specified values of @var{x}. When |
26 ## @var{mu} is present, evaluate the polynomial for | 26 ## @var{mu} is present, evaluate the polynomial for |
27 ## (@var{x}-@var{mu}(1))/@var{mu}(2). | 27 ## (@var{x}-@var{mu}(1))/@var{mu}(2). |
28 ## If @var{x} is a vector or matrix, the polynomial is evaluated for each of | 28 ## If @var{x} is a vector or matrix, the polynomial is evaluated for each of |
29 ## the elements of @var{x}. | 29 ## the elements of @var{x}. |
30 ## | 30 ## |
31 ## In addition to evaluating the polynomial, the second output | 31 ## In addition to evaluating the polynomial, the second output |
32 ## represents the prediction interval, @var{y} +/- @var{dy}, which | 32 ## represents the prediction interval, @var{y} +/- @var{dy}, which |
33 ## contains at least 50% of the future predictions. To calculate the | 33 ## contains at least 50% of the future predictions. To calculate the |
34 ## prediction interval, the structured variable @var{s}, originating | 34 ## prediction interval, the structured variable @var{s}, originating |
35 ## from @code{polyfit}, must be supplied. | 35 ## from @code{polyfit}, must be supplied. |
36 ## | 36 ## |
37 ## @seealso{polyvalm, polyaffine, polyfit, roots, poly} | 37 ## @seealso{polyvalm, polyaffine, polyfit, roots, poly} |
38 ## @end deftypefn | 38 ## @end deftypefn |
39 | 39 |
40 ## Author: Tony Richardson <arichard@stark.cc.oh.us> | 40 ## Author: Tony Richardson <arichard@stark.cc.oh.us> |
41 ## Created: June 1994 | 41 ## Created: June 1994 |