forked from skutsaev/hellweg2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpline.h
More file actions
41 lines (34 loc) · 975 Bytes
/
Spline.h
File metadata and controls
41 lines (34 loc) · 975 Bytes
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
40
41
//---------------------------------------------------------------------------
#ifndef SplineH
#define SplineH
#include "Matrix.h"
#include "Types.h"
using namespace HellwegTypes;
//---------------------------------------------------------------------------
class TSpline
{
private:
int Nx;
bool MeshSet;
bool CoefReady;
double p;
FILE *logfile;
TSplineCoef *Spline;
int SplinePosition(double x);
public:
__fastcall TSpline();
__fastcall ~TSpline();
void SetMesh(double *X, double *Y,int N,double *W=NULL);
bool SoftBoundaries;
void MakeLinearSpline(double *X,double *Y,int N);
void MakeLinearSpline();
void MakeCubicSpline(double *X,double *Y,int N);
void MakeCubicSpline();
void MakeSmoothSpline(double *X,double *Y,int N,double p,double *W=NULL);
void MakeSmoothSpline();
double Interpolate(double x);
double *Interpolate(double *x,int Ny);
double F(int i);
};
//---------------------------------------------------------------------------
#endif