liba 0.1.15

An algorithm library based on C/C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from a cimport *

cdef extern from "a/regress_simple.h":
    ctypedef struct a_regress_simple:
        a_float coef
        a_float bias
    void a_regress_simple_init(a_regress_simple *ctx, a_float coef, a_float bias)
    a_float a_regress_simple_eval(const a_regress_simple *ctx, a_float val) nogil
    a_float a_regress_simple_evar(const a_regress_simple *ctx, a_float val) nogil
    void a_regress_simple_ols_(a_regress_simple *ctx, a_size n, const a_float *x, const a_float *y, a_float x_mean, a_float y_mean)
    void a_regress_simple_olsx(a_regress_simple *ctx, a_size n, const a_float *x, const a_float *y, a_float x_mean)
    void a_regress_simple_olsy(a_regress_simple *ctx, a_size n, const a_float *x, const a_float *y, a_float y_mean)
    void a_regress_simple_ols(a_regress_simple *ctx, a_size n, const a_float *x, const a_float *y)
    void a_regress_simple_zero(a_regress_simple *ctx)