-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMathLibrary.h
39 lines (27 loc) · 1.93 KB
/
MathLibrary.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __MathLibrary_H__
#define __MathLibrary_H__
#ifdef __cplusplus
extern "C" {
#endif
//==============================================================================
// Include files
#include "cvidef.h"
//==============================================================================
// Constants
//==============================================================================
// Types
//==============================================================================
// External variables
//==============================================================================
// Global functions
int MTH_PolynomialExtrapolationSingle(double *vlfXaxisArray,double *vlfYaxisArray, int iNumberOfPoints,double lfXcoordinate, double *pYcoordinate);
int MTH_PolynomialExtrapolationArray(double *vlfXaxisArray,double *vlfYaxisArray, int iNumberOfPoints, int iStartIndex , int iBlockLength ,int iOutputNumberOfPoints, double lfStartX,double lfStopX, double **vXgeneratedArray,double **vYgeneratedArray);
//==== Use only between low X and high X ============//
int MTH_LinearExtrapolationSingle(double *vlfXaxisArray,double *vlfYaxisArray, int iNumberOfPoints,double lfXcoordinate, double *pYcoordinate);
int MTH_LinearExtrapolationArray(double *vlfXaxisArray,double *vlfYaxisArray, int iNumberOfPoints, int iStartIndex , int iBlockLength ,int iOutputNumberOfPoints, double lfStartX,double lfStopX, double **vXgeneratedArray,double **vYgeneratedArray);
int MTH_InterpolationSingle(int type,double *vlfXaxisArray, double *vlfYaxisArray,int iNumberOfPoints, double lfXcoordinate,double *pYcoordinate);
int MTH_InterpolationArray(int type,double *vlfXaxisArray, double *vlfYaxisArray,int iNumberOfPoints, int iStartIndex , int iBlockLength , int iOutputNumberOfPoints,double lfStartX, double lfStopX, double **vXgeneratedArray,double **vYgeneratedArray);
#ifdef __cplusplus
}
#endif
#endif /* ndef __MathLibrary_H__ */