How to perform interpolation on a vector (1D array) - specify output size

  1. Make sure you have added "InterpolationLIB.dll" to your project. You will need pro version for features in this sample.
  2. Now we are ready to code. First, we need to declare and initialize input array


  3. Finally, we just call Do2 method from InterpolationLIB. There are two ways that give the same result.


  4. Call Do2 method of the interpolation type class


       or

    Call Do2 method of Interpolator in which interpolation type can be set programmatically.


  5. Here's a screen-shot of the program output if we print input and ouput arrays to console





    Here is the complete source code of the program.


    Back





InterpolationLIB by Hasan Ayaz 2008