AMA_Unv.h
Go to the documentation of this file.
1 
4 #ifndef AMA_UNV_H
5 #define AMA_UNV_H
6 
7 /* -------------------------------------------------------------------------------------------------------------------------------
8  -------------------------------------------------------------------------------------------------------------------------------
9  --- THESE ARE USER CALLABLE FUNCTIONS ---
10  -------------------------------------------------------------------------------------------------------------------------------
11  ------------------------------------------------------------------------------------------------------------------------------- */
12 
13 long int AMA_UnvApprox ( AMA_OPTIONS *options,
14  long int n ,
15  double *x ,
16  double *z ,
17  double *epsilon,
18  long int degree ,
19  AMA_SPLINE **spline );
20 
21 long int AMA_UnvInterp ( AMA_OPTIONS *options,
22  long int n ,
23  double *x ,
24  double *z ,
25  long int degree ,
26  AMA_SPLINE **spline );
27 
28 long int AMA_UnvLstsqr ( AMA_OPTIONS *options,
29  long int n ,
30  double *x ,
31  double *z ,
32  double *wht ,
33  long int degree ,
34  long int mlamda ,
35  double *lamda ,
36  double theta ,
37  AMA_SPLINE **spline );
38 
39 long int AMA_UnvMonoApprox ( AMA_OPTIONS *options,
40  long int n ,
41  double *x ,
42  double *z ,
43  double *epsilon,
44  long int degree ,
45  AMA_SPLINE **spline );
46 
47 long int AMA_UnvMonoInterp ( AMA_OPTIONS *options,
48  long int n ,
49  double *x ,
50  double *z ,
51  long int degree ,
52  AMA_SPLINE **spline );
53 
54 /* -------------------------------------------------------------------------------------------------------------------------------
55  -------------------------------------------------------------------------------------------------------------------------------
56  --- THESE ARE USER SUPPORT FUNCTIONS ---
57  -------------------------------------------------------------------------------------------------------------------------------
58  ------------------------------------------------------------------------------------------------------------------------------- */
59 
60 long int AMA_UnvBoundaryConditions ( AMA_OPTIONS *options,
61  enum AMA_Boolean interp ,
62  CNSPLA_SPLFUN *splfun );
63 
64 long int AMA_UnvData ( AMA_OPTIONS *options,
65  const char *datfile,
66  long int *degree ,
67  long int *n ,
68  double **x ,
69  double **z ,
70  double **epsilon,
71  double **wht ,
72  double *theta ,
73  long int *mlamda ,
74  double **lamda );
75 
76 long int AMA_UnvDataFree ( AMA_OPTIONS *options,
77  double **x ,
78  double **z ,
79  double **epsilon,
80  double **wht ,
81  double **lamda );
82 
83 long int AMA_UnvInputCheck ( AMA_OPTIONS *options,
84  long int n ,
85  double *x ,
86  double *z ,
87  double *wht ,
88  double *epsilon,
89  long int degree ,
90  long int mlamda ,
91  double *lamda ,
92  enum AMA_Boolean lstsqr );
93 
94 long int AMA_UnvPnltrm ( AMA_OPTIONS *options,
95  double theta ,
96  long int porder ,
97  CNSPLA_SPLFUN *splfun );
98 
99 long int AMA_UnvConpnt ( AMA_OPTIONS *options,
100  long int n ,
101  double *x ,
102  double *z ,
103  double *epsilon,
104  CNSPLA_SPLFUN *splfun );
105 
106 long int AMA_UnvConreg ( AMA_OPTIONS *options,
107  long int n ,
108  double *x ,
109  double *z ,
110  double *epsilon,
111  long int degree ,
112  CNSPLA_SPLFUN *splfun );
113 
114 /* -------------------------------------------------------------------------------------------------------------------------------
115  -------------------------------------------------------------------------------------------------------------------------------
116  --- THESE ARE INTERNAL FUNCTIONS ---
117  -------------------------------------------------------------------------------------------------------------------------------
118  ------------------------------------------------------------------------------------------------------------------------------- */
119 
120 
121 #endif /* AMA_UNV_H */
long int AMA_UnvPnltrm(AMA_OPTIONS *options, double theta, long int porder, CNSPLA_SPLFUN *splfun)
Define penalty term on an univariate spline.
Definition: AMA_Unv.c:1168
long int AMA_UnvInputCheck(AMA_OPTIONS *options, long int n, double *x, double *z, double *wht, double *epsilon, long int degree, long int mlamda, double *lamda, enum AMA_Boolean lstsqr)
Perform input check for univariate data approximation functions.
Definition: AMA_Unv.c:906
long int AMA_UnvLstsqr(AMA_OPTIONS *options, long int n, double *x, double *z, double *wht, long int degree, long int mlamda, double *lamda, double theta, AMA_SPLINE **spline)
Least Squares Approximation of Univariate Data
Definition: AMA_UnvLstsqr.c:150
long int AMA_UnvMonoInterp(AMA_OPTIONS *options, long int n, double *x, double *z, long int degree, AMA_SPLINE **spline)
Monotonic Interpolation of Univariate Data
Definition: AMA_UnvMonoInterp.c:118
long int AMA_UnvDataFree(AMA_OPTIONS *options, double **x, double **z, double **epsilon, double **wht, double **lamda)
Free Univariate Data Functions data arrays.
Definition: AMA_Unv.c:810
long int AMA_UnvConreg(AMA_OPTIONS *options, long int n, double *x, double *z, double *epsilon, long int degree, CNSPLA_SPLFUN *splfun)
Define local monotonicity constraints on an univariate spline.
Definition: AMA_Unv.c:1389
This structure is used to maintain the AMA Spline Library environment.
Definition: AMA.h:335
long int AMA_UnvApprox(AMA_OPTIONS *options, long int n, double *x, double *z, double *epsilon, long int degree, AMA_SPLINE **spline)
Approximation of Univariate Data
Definition: AMA_UnvApprox.c:56
long int AMA_UnvConpnt(AMA_OPTIONS *options, long int n, double *x, double *z, double *epsilon, CNSPLA_SPLFUN *splfun)
Define approximation or interpolation constraints on an univariate spline.
Definition: AMA_Unv.c:1260
long int AMA_UnvData(AMA_OPTIONS *options, const char *datfile, long int *degree, long int *n, double **x, double **z, double **epsilon, double **wht, double *theta, long int *mlamda, double **lamda)
Read data and approximation options for AMA Spline Library Univariate Data Functions.
Definition: AMA_Unv.c:257
long int AMA_UnvMonoApprox(AMA_OPTIONS *options, long int n, double *x, double *z, double *epsilon, long int degree, AMA_SPLINE **spline)
Monotonic Approximation of Univariate Data
Definition: AMA_UnvMonoApprox.c:129
CNSPLA_SPLINE AMA_SPLINE
Definition: AMA.h:461
long int AMA_UnvInterp(AMA_OPTIONS *options, long int n, double *x, double *z, long int degree, AMA_SPLINE **spline)
Interpolation of Univariate Data
Definition: AMA_UnvInterp.c:107
AMA_Boolean
This enumeration provides a boolean capability.
Definition: AMA.h:22
long int AMA_UnvBoundaryConditions(AMA_OPTIONS *options, enum AMA_Boolean interp, CNSPLA_SPLFUN *splfun)
Define boundary conditions for univariate approximation and interpolation functions.
Definition: AMA_Unv.c:25