Difference between revisions of "Interpolation functions"
Line 19: | Line 19: | ||
<code>Index_b:</code> | <code>Index_b:</code> | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|1 | |1 | ||
Line 25: | Line 24: | ||
|3 | |3 | ||
|} | |} | ||
+ | |||
Array_a: | Array_a: | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! | ||
− | ! colspan="3" |Index_b | + | ! colspan="3" |Index_b ▶ |
|- | |- | ||
− | !Index_a: | + | !Index_a: ▼ |
!1 | !1 | ||
!2 | !2 | ||
!3 | !3 | ||
|- | |- | ||
− | + | !a | |
|7 | |7 | ||
− | | | + | |-3 |
|1 | |1 | ||
|- | |- | ||
− | + | !b | |
− | | | + | |-4 |
− | | | + | |-1 |
|6 | |6 | ||
|- | |- | ||
− | + | !c | |
|5 | |5 | ||
|0 | |0 | ||
− | | | + | |-2 |
|} | |} | ||
==See Also== | ==See Also== | ||
<footer>Relational tables and multiD arrays / {{PAGENAME}} / Fourier Transform</footer> | <footer>Relational tables and multiD arrays / {{PAGENAME}} / Fourier Transform</footer> |
Revision as of 23:58, 12 December 2015
These three functions interpolate across arrays. Given arrays y and x with a common index i, these functions interpolate a value for y corresponding to value v along the x axis.
LinearInterp() and CubicInterp() use these variables:
Index_a:
a | b | c |
Index_b:
1 | 2 | 3 |
Array_a:
Index_b ▶ | |||
---|---|---|---|
Index_a: ▼ | 1 | 2 | 3 |
a | 7 | ||
1 | |||
b | |||
6 | |||
c | 5 | 0 |
See Also
Comments
Enable comment auto-refresher