Posted By

jimfred on 12/21/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

khouser


Linear interpolation, C#


 / Published in: C#
 

  1. static double interpolate( double x0, double y0, double x1, double y1, double x )
  2. {
  3. return y0*(x - x1)/(x0 - x1) + y1*(x - x0)/(x1 - x0);
  4. }

Report this snippet  

You need to login to post a comment.