7#ifndef LIBA_REGRESS_SIMPLE_H
8#define LIBA_REGRESS_SIMPLE_H
20#if defined(__cplusplus)
94#if defined(__cplusplus)
98typedef struct a_regress_simple regress_simple;
109#if defined(__cplusplus)
double a_float
compiler built-in floating-point number type
Definition a.h:1003
void a_regress_simple_olsx(a_regress_simple *ctx, a_size n, a_float const *x, a_float const *y, a_float x_mean)
ordinary least squares for simple linear regression
a_float a_regress_simple_evar(a_regress_simple const *ctx, a_float val)
calculate predicted value for simple linear regression
void a_regress_simple_ols_(a_regress_simple *ctx, a_size n, a_float const *x, a_float const *y, a_float x_mean, a_float y_mean)
ordinary least squares for simple linear regression
void a_regress_simple_zero(a_regress_simple *ctx)
zeroing for simple linear regression
a_float a_regress_simple_eval(a_regress_simple const *ctx, a_float val)
calculate predicted value for simple linear regression
void a_regress_simple_ols(a_regress_simple *ctx, a_size n, a_float const *x, a_float const *y)
ordinary least squares for simple linear regression
void a_regress_simple_olsy(a_regress_simple *ctx, a_size n, a_float const *x, a_float const *y, a_float y_mean)
ordinary least squares for simple linear regression
void a_regress_simple_init(a_regress_simple *ctx, a_float coef, a_float bias)
initialize for simple linear regression
size_t a_size
unsigned integer type returned by the sizeof operator
Definition a.h:823
instance structure for simple linear regression
Definition regress_simple.h:106
a_float bias
Definition regress_simple.h:108
a_float coef
Definition regress_simple.h:107