diff options
author | siddhu8990 | 2017-04-24 14:08:37 +0530 |
---|---|---|
committer | siddhu8990 | 2017-04-24 14:08:37 +0530 |
commit | c7e9597db39140c1d982f796a8e1f03bb54e7905 (patch) | |
tree | f5f44081aeba7a00bb69b1ec71f93c31eac12863 /src/c/elementaryFunctions/interpolation/dinterp1s.c | |
parent | 1fd0dce8d72c4d5869ce5ff4025ac09af603bc0f (diff) | |
download | scilab2c-c7e9597db39140c1d982f796a8e1f03bb54e7905.tar.gz scilab2c-c7e9597db39140c1d982f796a8e1f03bb54e7905.tar.bz2 scilab2c-c7e9597db39140c1d982f796a8e1f03bb54e7905.zip |
Fixed float.h issue. OpenCV with built libraries working for linux x64
Diffstat (limited to 'src/c/elementaryFunctions/interpolation/dinterp1s.c')
-rw-r--r-- | src/c/elementaryFunctions/interpolation/dinterp1s.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/c/elementaryFunctions/interpolation/dinterp1s.c b/src/c/elementaryFunctions/interpolation/dinterp1s.c deleted file mode 100644 index 17aeb876..00000000 --- a/src/c/elementaryFunctions/interpolation/dinterp1s.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "interp1.h" -double dinterp1s(double* x, int size, double* y,int size2, double xin, char* method,int size3) -{ - double x0=x[0]; - double x1=x[size-1]; - double y0=y[0]; - double y1=y[size2-1]; - double a = (y1 - y0) / (x1 - x0); - double b = ((-a)*x0) + y0; - double yout = 0.0; - yout=(double) ((a*xin) + b); - return yout; -} - -/* -int main(void) -{ - double x0=3, y0=0, x1=5, y1=8; - double x=4; - double y = linear_interpolation(x0, y0, x1, y1, x); - printf("(%f, %f), (%f, %f) for %f = %f\n", x0, y0, x1, y1, x, y); - return 0; - -} -*/ |