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 &#9654;
 
|-
 
|-
!Index_a:
+
!Index_a: &#9660;
 
!1
 
!1
 
!2
 
!2
 
!3
 
!3
 
|-
 
|-
|a
+
!a
 
|7
 
|7
|<nowiki>-3</nowiki>
+
|-3
 
|1
 
|1
 
|-
 
|-
|b
+
!b
|<nowiki>-4</nowiki>
+
|-4
|<nowiki>-1</nowiki>
+
|-1
 
|6
 
|6
 
|-
 
|-
|c
+
!c
 
|5
 
|5
 
|0
 
|0
|<nowiki>-2</nowiki>
+
|-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.

Chapter12 3.png

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


You are not allowed to post comments.