13.07.2015 Views

Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...

Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...

Data Interpolation and Its Effects on Digital Sound Quality - McMurry ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2: <str<strong>on</strong>g>Data</str<strong>on</strong>g> <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g> Techniques<str<strong>on</strong>g>Data</str<strong>on</strong>g> interpolati<strong>on</strong> is a means of taking two points <str<strong>on</strong>g>and</str<strong>on</strong>g> fitting a functi<strong>on</strong> inbetween them to estimate the locati<strong>on</strong> of a third point in between the two givenpoints. There are several different means of data interpolati<strong>on</strong>, however in thisthesis we will take a look at three selected methods to be applied to our soundsamples. These are Piecewise Linear <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g>, Lagrange Polynomial<str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g>, <str<strong>on</strong>g>and</str<strong>on</strong>g> Cubic Spline <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g>.92.1 Piecewise Linear <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g>Perhaps the simplest <str<strong>on</strong>g>and</str<strong>on</strong>g> quickest of all known interpolati<strong>on</strong> methods isthe Piecewise Linear <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g> method. If you recall the midpoint formula fromhigh school algebra for finding the point exactly halfway between two givenpoints, this is very similar. Piecewise Linear <str<strong>on</strong>g>Interpolati<strong>on</strong></str<strong>on</strong>g> calculates the slope<str<strong>on</strong>g>and</str<strong>on</strong>g> y-intercept of the particular line that passes through two points to allow <strong>on</strong>eto estimate the locati<strong>on</strong> of any point chosen between the two points.2.1.1 Definiti<strong>on</strong> Given two known points A := (x 0 , y 0 ) <str<strong>on</strong>g>and</str<strong>on</strong>g> B := (x 1 , y 1 ) thelinear interpolant is defined as the straight line between the two points. For avalue x in the interval (x 0 , x 1 ), the value y al<strong>on</strong>g the straight line is given from theequati<strong>on</strong>y y x x0 0y1y x x0 1 0This can then be solved for y to yield

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!