Programmer Guide/Command Reference/EVAL/interp: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
m (1 revision: Initial import) |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Create an interpolated copy of the vector <var>x</var>. | |||
;Usage:<code>interp(<var>x</var>, <var>n</var>, <var>type</var> {, <var>mv</var>})</code> | |||
:;<var>x</var>the vector to be interpolated | |||
:;<var>n</var>the length of the interpolated vector; the interpolated vector can be shorter or longer than the original | |||
:;<var>type</var>:the type of interpolation to perform; currently only linear interpolation (''type''='''0''') is supported. | |||
:;<var>mv</var>:the value to use for 'missing values'. If mv is given, then interpolation is stopped when <code>''x''[i] = ''mv''</code>. This means that the sections without missing values are individually interpolated. If ''mv'' is not supplied, the whole vector ''x'' is interpolated. | |||
;Result:The interpolated vector ''y'' with length ''n''. | |||
;See also: [[Programmer_Guide/Command_Reference/EVAL/rpolyreg|rpolyreg]], [[Programmer_Guide/Command_Reference/EVAL/qinterp|qinterp]] | |||
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] | |||
|< | |||
| | | | ||
|} | |} |
Revision as of 09:05, 12 April 2011
Create an interpolated copy of the vector x.
- Usage
interp(x, n, type {, mv})
- xthe vector to be interpolated
- nthe length of the interpolated vector; the interpolated vector can be shorter or longer than the original
- type
- the type of interpolation to perform; currently only linear interpolation (type=0) is supported.
- mv
- the value to use for 'missing values'. If mv is given, then interpolation is stopped when
x[i] = mv
. This means that the sections without missing values are individually interpolated. If mv is not supplied, the whole vector x is interpolated.
- Result
- The interpolated vector y with length n.
|
|}