ifw-odp 5.0.0
Loading...
Searching...
No Matches
clipm_math_regression.h
Go to the documentation of this file.
1
2/*********************************************************************
3 * E.S.O. - VLT project
4 *
5 * "@(#) $Id: clipm_math_regression.h 169734 2008-07-02 16:20:41Z hlorch $"
6 *
7 * Functions for doing regression
8 *
9 * who when what
10 * -------- ---------- ----------------------------------------------
11 * hlorch 2007-03-05 created
12 */
13
14#ifndef CLIPM_MATH_REGRESSION_H
15#define CLIPM_MATH_REGRESSION_H
16
17/*-----------------------------------------------------------------------------
18 Includes
19 -----------------------------------------------------------------------------*/
20
21#include <cpl.h>
22
23/*-----------------------------------------------------------------------------
24 Declaration Block
25 -----------------------------------------------------------------------------*/
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*-----------------------------------------------------------------------------
32 Prototypes
33 -----------------------------------------------------------------------------*/
34
36 const double *x,
37 const double *y,
38 int N,
39 double *out_mse);
40
41cpl_polynomial *clipm_math_regression_linear(
42 const cpl_matrix *Xpos,
43 const cpl_vector *Y,
44 double *out_mse);
45
47 const cpl_matrix *Xpos,
48 const cpl_matrix *Y,
49 double *out_mse);
50
51/*----------------------------------------------------------------------------*/
52
53#ifdef __cplusplus
54} /* extern "C" */
55#endif
56
57#endif /* CLIPM_MATH_REGRESSION_H */
cpl_polynomial * clipm_math_regression_linear_1d(const double *x, const double *y, int N, double *out_mse)
Do a single linear regression.
Definition clipm_math_regression.c:83
cpl_polynomial * clipm_math_regression_linear(const cpl_matrix *Xpos, const cpl_vector *Y, double *out_mse)
Do a multiple (multivariate) linear regression.
Definition clipm_math_regression.c:222
cpl_matrix * clipm_math_regression_linear_series(const cpl_matrix *Xpos, const cpl_matrix *Y, double *out_mse)
Do a multiple (multivariate) linear regression respectively for test data sets in a series.
Definition clipm_math_regression.c:418