31 return fabs(v) < 1e-9 ? 0.0 : v;
43 for (
i = 0;
i < 100;
i++) {
53 for (order = 0; order < 3; order++) {
55 printf(
"real:%9f order:%d pred:%9f var:%f coeffs:%f %9f %9f\n",
#define i(width, name, range_min, range_max)
__device__ int printf(const char *,...)
static __device__ float fabs(float a)
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
common internal API header
av_cold void avpriv_init_lls(LLSModel *m, int indep_count)
void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order)
static double clean(double v)
#define LOCAL_ALIGNED(a, t, v,...)
Context structure for the Lagged Fibonacci PRNG.
Linear least squares model.
void(* update_lls)(struct LLSModel *m, const double *var)
Take the outer-product of var[] with itself, and add to the covariance matrix.
double variance[MAX_VARS]
double(* evaluate_lls)(struct LLSModel *m, const double *var, int order)
Inner product of var[] and the LPC coefs.
double coeff[MAX_VARS][MAX_VARS]