input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int batch_mode_switch(int set, int val) { if (set) bmode_0 = val; return bmode_0; }
static int batch_mode_switch(int set, int val) { static int bmode; if (set) { bmode = val; } return bmode; }
batch_mode_switch
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int batch_pvalue(const char *str, DATASET *dset, PRN *prn) { int v4; const char *v5; const char *stra; int n; int err; int i; int m; int dist; double pv; char **S; char line[520]; unsigned long v16; stra = str; v16 = __readfsqword(0x28u); pv = NAN; err = 0; if (!str || !*str) retu...
int batch_pvalue(const char *str, DATASET *dset, PRN *prn) { double pv = NADBL; char line[MAXLEN]; char **S; int dist; int i, n, m; int err = 0; if (str == NULL || *str == '\0') { return E_ARGS; } if (!strncmp(str, "pvalue ", 7)) { str += 7; } S = gretl_string_split(str, &n, NULL); if...
batch_pvalue
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bbit_trailing_garbage(const char *s) { char *v1; const char *sa; sa = s; if (!*s) return 0; while (((*__ctype_b_loc())[*sa] & 0x2000) != 0) ++sa; if (!*sa) return 0; if (*sa == 47) { v1 = gettext("%s: division not allowed here"); gretl_errmsg_sprintf(v1, sa - 1); } return 1; }
static int bbit_trailing_garbage(const char *s) { if (*s) { while (isspace(*s)) s++; if (*s) { if (*s == '/') { gretl_errmsg_sprintf(_("%s: division not allowed here"), s - 1); } return 1; } } return 0; }
bbit_trailing_garbage
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bds_print(const gretl_matrix *m, const char *vname, int order, double eps, int c1, int boot, double *detail, PRN *prn) { char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; double v14; char *v15; double v16; int i; double z; double pv; pputc(prn, 10); v8 = ge...
static void bds_print(const gretl_matrix *m, const char *vname, int order, double eps, int c1, int boot, double *detail, PRN *prn) { double z, pv; int i; pputc(prn, '\n'); pprintf(prn, _("BDS test for %s, maximum order %d"), vname, order); pputc(prn, '\n'); pputs(prn, _("H0: the serie...
bds_print
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bds_test_driver(int order, int *list, DATASET *dset, gretlopt opt, PRN *prn) { int t1; int t2; int n; int err; int boot; int c1; int v; const double *x; const char *vname; gretl_matrix *res; double eps; gretl_matrix *(*bdstest)(const double *, int, int, double, int, int, ...
int bds_test_driver(int order, int *list, DATASET *dset, gretlopt opt, PRN *prn) { gretl_matrix *res = NULL; const double *x = NULL; const char *vname = NULL; double detail[2] = {0}; double eps = -0.7; int t1 = dset->t1; int t2 = dset->t2; int boot = -1; int c1 = 1; int n, v = 0;...
bds_test_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bdtr(int k, int n, double p) { double dn; if (p >= 0.0 && p <= 1.0 && k >= 0 && n >= k) { if (k == n) { return 1.0; } else { dn = (double)(n - k); if (k) return incbet(dn, (double)(k + 1), 1.0 - p); else return pow(1.0 - p, dn); } } else { mtherr("bd...
double bdtr(int k, int n, double p) { double dk, dn; if (p < 0.0 || p > 1.0) goto domerr; if (k < 0 || n < k) { domerr: mtherr("bdtr", CEPHES_DOMAIN); return 0.0; } if (k == n) return 1.0; dn = n - k; if (k == 0) { dk = pow(1.0 - p, dn); } else { dk = k + 1; dk = incbet(...
bdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bdtrc(int k, int n, double p) { double v4; double dn; if (p < 0.0 || p > 1.0) goto domerr; if (k < 0) return 1.0; if (n >= k) { if (k == n) { return 0.0; } else { dn = (double)(n - k); if (k) return incbet((double)(k + 1), dn, p); if (p >= 0.01) ...
double bdtrc(int k, int n, double p) { double dk, dn; if (p < 0.0 || p > 1.0) goto domerr; if (k < 0) return 1.0; if (n < k) { domerr: mtherr("bdtrc", CEPHES_DOMAIN); return 0.0; } if (k == n) return 0.0; dn = n - k; if (k == 0) { if (p < .01) dk = -cephes_exp(dn * cep...
bdtrc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bdtri(int k, int n, double y) { double v4; double dn; double dk; if (y >= 0.0 && y <= 1.0 && k >= 0 && n > k) { dn = (double)(n - k); if (k) { dk = (double)(k + 1); if (incbet(dn, dk, 0.5) <= 0.5) return 1.0 - incbi(dn, dk, y); else return incbi(dk, dn, 1.0 - y)...
double bdtri(int k, int n, double y) { double dk, dn, p; if (y < 0.0 || y > 1.0) goto domerr; if (k < 0 || n <= k) { domerr: mtherr("bdtri", CEPHES_DOMAIN); return 0.0; } dn = n - k; if (k == 0) { if (y > 0.8) p = -cephes_exp(cephes_log(y - 1.0) / dn); else p = 1.0 - pow(...
bdtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void beck_katz_failed_line(PRN *prn) { char *v1; if (plain_format(prn)) { v1 = gettext("Could not compute Beck-Katz standard errors"); pputs(prn, v1); pputc(prn, 10); } }
static void beck_katz_failed_line(PRN *prn) { if (plain_format(prn)) { pputs(prn, _("Could not compute Beck-Katz standard errors")); pputc(prn, '\n'); } }
beck_katz_failed_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int beck_katz_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset, gretl_matrix *XX, gretl_matrix *W, gretl_matrix *V) { int v6; int v7; int v8; int s; int sa; int i; int j; int p; int pa; int t; int ta; int tb; int err; int Tij; int T; int k; int Ti; int si_0; ...
static int beck_katz_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset, gretl_matrix *XX, gretl_matrix *W, gretl_matrix *V) { gretl_matrix *Xi = NULL; gretl_matrix *Xj = NULL; int T = pan->T; int k = pmod->ncoeff; int s, si, sj; int i, j, p, v, t; int err = 0; Xi = gretl_ma...
beck_katz_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double beta_cdf(double a, double b, double z) { double x; x = NAN; if (a > 0.0 && b > 0.0 && z >= 0.0 && z <= 1.0) { x = btdtr(a, b, z); if (get_cephes_errno()) return NAN; } return x; }
double beta_cdf(double a, double b, double z) { double x = NADBL; if (a > 0 && b > 0 && z >= 0 && z <= 1) { x = btdtr(a, b, z); if (get_cephes_errno()) { x = NADBL; } } return x; }
beta_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double beta_pdf(double a, double b, double x) { double xa; double ba; double aa; aa = a; ba = b; xa = x; beta_pdf_array(a, b, &xa, 1); return xa; }
static double beta_pdf(double a, double b, double x) { beta_pdf_array(a, b, &x, 1); return x; }
beta_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int beta_pdf_array(double a, double b, double *x, int n) { double v4; double v5; double v7; double v8; int i; int ia; int err; double k; err = 0; if (fabs(a) <= 1.797693134862316e308 && a > 0.0 && fabs(b) <= 1.797693134862316e308 && b > 0.0) { v4 = lngamma(a + b); v7 = v4 - lngamma(a)...
static int beta_pdf_array(double a, double b, double *x, int n) { int i, err = 0; if (na(a) || a <= 0 || na(b) || b <= 0) { err = E_INVARG; for (i = 0; i < n; i++) { x[i] = NADBL; } } else { double k = exp(lngamma(a + b) - lngamma(a) - lngamma(b)); for (i = 0; i < n; i++) { x[i] ...
beta_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int beta_restricted_VECM(const GRETL_VAR *vecm) { return vecm->jinfo && vecm->jinfo->R; }
int beta_restricted_VECM(const GRETL_VAR *vecm) { if (vecm->jinfo != NULL && vecm->jinfo->R != NULL) { return 1; } return 0; }
beta_restricted_VECM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int between_model(panelmod_t *pan, const DATASET *dset) { int err; DATASET *gset; gset = group_means_dataset(pan, dset); if (!gset) return 12; err = between_variance(pan, gset); if (err) destroy_dataset(gset); else pan->realmod->dataset = gset; return err; }
static int between_model(panelmod_t *pan, const DATASET *dset) { DATASET *gset; int err = 0; gset = group_means_dataset(pan, dset); if (gset == NULL) { err = E_ALLOC; } else { err = between_variance(pan, gset); if (err) { destroy_dataset(gset); } else { pan->realmod->dataset = gs...
between_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int between_variance(panelmod_t *pan, DATASET *gset) { int v3; int v4; int v5; MODEL v6; DATASET *gseta; panelmod_t *pana; int i; int j; int k; int err; gretlopt bopt; int *blist; MODEL bmod; unsigned long v16; pana = pan; gseta = gset; v16 = __readfsqword(0x28u); err = 0; blist =...
static int between_variance(panelmod_t *pan, DATASET *gset) { gretlopt bopt; MODEL bmod; int *blist; int i, j, k; int err = 0; blist = gretl_list_new(gset->v); if (blist == NULL) { return E_ALLOC; } j = k = 1; for (i = 1; i <= gset->v; i++) { if (pan->pooled->list[i] == 0) { blist[k+...
between_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bg_test_header(int order, PRN *prn, int ivreg) { char *v3; char *v4; char *v5; if (ivreg) v3 = gettext("Godfrey (1994) test for"); else v3 = gettext("Breusch-Godfrey test for"); pprintf(prn, "\n%s ", v3); if (order <= 1) { v5 = gettext("first-order autocorrelation"); pprintf(prn, "%s...
static void bg_test_header(int order, PRN *prn, int ivreg) { if (ivreg) { pprintf(prn, "\n%s ", _("Godfrey (1994) test for")); } else { pprintf(prn, "\n%s ", _("Breusch-Godfrey test for")); } if (order > 1) { pprintf(prn, "%s %d\n", _("autocorrelation up to order"), order); } else { pprintf(p...
bg_test_header
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bhhh_max(double *theta, int k, gretl_matrix *M, BHHH_FUNC callback, double toler, int *fncount, int *grcount, void *data, gretl_matrix *V, gretlopt opt, PRN *prn) { int cols; int rows; int v14; int err; int iter; int fcount; int gcount; int numeric; int i; int T; int ...
int bhhh_max(double *theta, int k, gretl_matrix *M, BHHH_FUNC callback, double toler, int *fncount, int *grcount, void *data, gretl_matrix *V, gretlopt opt, PRN *prn) { gretl_matrix *c = NULL; gretl_matrix *g = NULL; gretl_matrix *G = NULL; double *restrict delta = NULL; double *rest...
bhhh_max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bhhh_numeric(double *b, int k, gretl_matrix *L, gretl_matrix *G, BHHH_FUNC func, void *data, int *err) { int i; int t; int ta; int T; double ret; double *Lval; double bi0; double ll; Lval = L->val; T = G->rows; ret = func(b, L, data, 0, err); for (i = 0; i < k && !*er...
static double bhhh_numeric(double *b, int k, gretl_matrix *L, gretl_matrix *G, BHHH_FUNC func, void *data, int *err) { double *restrict Lval = L->val; const double h = 1.0e-8; double gti, ret; int i, t, T = G->rows; ret = func(b, L, data, 0, err); for (i = 0; i < k && !*err; i++...
bhhh_numeric
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bin_info_destroy(bin_info *bin) { if (bin) { gretl_matrix_block_destroy(bin->B); free(bin->theta); free(bin->y); free(bin); } }
static void bin_info_destroy(bin_info *bin) { if (bin != NULL) { gretl_matrix_block_destroy(bin->B); free(bin->theta); free(bin->y); free(bin); } }
bin_info_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
bin_info *bin_info_new(int ci, int k, int T) { bin_info *bin; bin = (bin_info *)malloc(0x48u); if (bin) { bin->ci = ci; bin->k = k; bin->T = T; bin->pp_err = 0; bin->theta = (double *)malloc(8LL * k); if (!bin->theta) { free(bin); return 0; } bin->y = (int *)malloc(4LL...
static bin_info *bin_info_new(int ci, int k, int T) { bin_info *bin = malloc(sizeof *bin); if (bin != NULL) { bin->ci = ci; bin->k = k; bin->T = T; bin->pp_err = 0; bin->theta = malloc(k * sizeof *bin->theta); if (bin->theta == NULL) { free(bin); return NULL; } bin->y = ...
bin_info_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *binary_expansion(int s, int *t, int *pow2) { int sa; int k; char *bits; double l2; double l2a; sa = s; l2 = log_2((double)s); k = (int)floor(l2); if ((double)k == l2) *pow2 = 1; *t = k; bits = (char *)calloc(k + 1, 1u); if (bits) { while (1) { bits[k] = 1; sa = (int)((...
static char *binary_expansion(int s, int *t, int *pow2) { char *bits = NULL; double l2 = log_2(s); int k = (int)floor(l2); if (l2 == k) { *pow2 = 1; } *t = k; bits = calloc(k + 1, 1); if (bits != NULL) { while (1) { bits[k] = 1; s -= pow(2.0, k); if (s == 0) { break;...
binary_expansion
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_hessian(double *theta, gretl_matrix *H, void *data) { double v3; double v4; int t; int j; double p; double ndx; for (t = 0; t < *((_DWORD *)data + 2); ++t) { ndx = *(double *)(*(_QWORD *)(*((_QWORD *)data + 8) + 8LL) + 8LL * t); if (*(_DWORD *)data == 102) { if (*(_DWORD *)(*((_Q...
static int binary_hessian(double *theta, gretl_matrix *H, void *data) { bin_info *bin = data; double w, p, ndx, xtj; int t, j; for (t = 0; t < bin->T; t++) { ndx = gretl_vector_get(bin->Xb, t); if (bin->ci == PROBIT) { w = bin->y[t] ? invmills(-ndx) : -invmills(ndx); p = w * (ndx + w); ...
binary_hessian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *binary_hessian_inverse(bin_info *bin, int *err) { gretl_matrix *H; H = gretl_zero_matrix_new(bin->k, bin->k); if (H) *err = binary_hessian(bin->theta, H, bin); else *err = 12; if (!*err) *err = gretl_invert_symmetric_matrix(H); return H; }
static gretl_matrix *binary_hessian_inverse(bin_info *bin, int *err) { gretl_matrix *H; H = gretl_zero_matrix_new(bin->k, bin->k); if (H == NULL) { *err = E_ALLOC; } else { *err = binary_hessian(bin->theta, H, bin); } if (!*err) { *err = gretl_invert_symmetric_matrix(H); } return H; }
binary_hessian_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *binary_logit(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { binary_model(retstr, 70, list, dset, opt, prn); return retstr; }
MODEL binary_logit(const int *list, DATASET *dset, gretlopt opt, PRN *prn) { return binary_model(LOGIT, list, dset, opt, prn); }
binary_logit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binary_loglik(const double *theta, void *ptr) { double v3; double v4; int i; int t; int yt; double p; double ll; double ndx; double e; ll = 0.0; for (i = 0; i < *((_DWORD *)ptr + 1); ++i) *(double *)(*(_QWORD *)(*((_QWORD *)ptr + 7) + 8LL) + 8LL * i) = theta[i]; gretl_matrix_multiply...
static double binary_loglik(const double *theta, void *ptr) { bin_info *bin = (bin_info *)ptr; double e, ndx, p, ll = 0.0; int yt, i, t; for (i = 0; i < bin->k; i++) { bin->b->val[i] = theta[i]; } gretl_matrix_multiply(bin->X, bin->b, bin->Xb); if (perfect_prediction_check(bin)) { bin->pp_err =...
binary_loglik
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *binary_model(MODEL *__return_ptr retstr, int ci, const int *inlist, DATASET *dset, gretlopt opt, PRN *prn) { char *v6; char *v7; char *v8; bool v9; int *y; int v11; double *v12; double *val; int v14; int v15; char *v16; MODEL v18; PRN *prna; DATASET *dseta; const...
static MODEL binary_model(int ci, const int *inlist, DATASET *dset, gretlopt opt, PRN *prn) { gretlopt maxopt = OPT_NONE; int save_t1 = dset->t1; int save_t2 = dset->t2; int *list = NULL; char *mask = NULL; double crittol = 1.0e-8; double gradtol = 1.0e-7; int maxit = 100; in...
binary_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_model_add_slopes(MODEL *pmod, bin_info *bin) { double v3; double *v4; int err; int i; const double *Xi; double Xb; gretl_matrix *xbar; size_t ssize; double *slopes; double fXb; unsigned long v13; v13 = __readfsqword(0x28u); err = 0; xbar = gretl_rmatrix_vector_stat(bin->X, V_MEAN...
static int binary_model_add_slopes(MODEL *pmod, bin_info *bin) { gretl_matrix *xbar; const double *Xi; double *slopes; double Xb, fXb; size_t ssize; int i, err = 0; xbar = gretl_rmatrix_vector_stat(bin->X, V_MEAN, 0, &err); if (err) { return err; } ssize = pmod->ncoeff * sizeof *slopes; slop...
binary_model_add_slopes
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void binary_model_chisq(bin_info *bin, MODEL *pmod, gretlopt opt) { int t; int ones; int zeros; double Lra; double Lr; double chisq; double expon; ones = 0; if (pmod->ncoeff == 1 && pmod->ifc) { pmod->chisq = NAN; pmod->rsq = 0.0; pmod->adjrsq = NAN; } else { for (t = 0; t < bin->T;...
static void binary_model_chisq(bin_info *bin, MODEL *pmod, gretlopt opt) { int t, zeros, ones = 0; double Lr, chisq; if (pmod->ncoeff == 1 && pmod->ifc) { pmod->chisq = NADBL; pmod->rsq = 0; pmod->adjrsq = NADBL; return; } for (t = 0; t < bin->T; t++) { ones += bin->y[t]; } zeros =...
binary_model_chisq
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binary_model_fXb(bin_info *bin) { int i; int t; double xbar; double Xb; Xb = 0.0; for (i = 0; i < bin->k; ++i) { xbar = 0.0; for (t = 0; t < bin->T; ++t) xbar = bin->X->val[i * bin->X->rows + t] + xbar; Xb = bin->theta[i] * (xbar / (double)bin->T) + Xb; } if (bin->ci == 70) ...
static double binary_model_fXb(bin_info *bin) { double xbar, Xb = 0.0; int i, t; for (i = 0; i < bin->k; i++) { xbar = 0.0; for (t = 0; t < bin->T; t++) { xbar += gretl_matrix_get(bin->X, t, i); } xbar /= bin->T; Xb += bin->theta[i] * xbar; } return (bin->ci == LOGIT) ? logit_pdf(X...
binary_model_fXb
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_model_finish(bin_info *bin, MODEL *pmod, const DATASET *dset, gretlopt opt) { gretlopt v4; gretlopt v6; int i; double fXb; for (i = 0; i < pmod->ncoeff; ++i) pmod->coeff[i] = bin->theta[i]; pmod->ci = bin->ci; pmod->lnL = binary_loglik(pmod->coeff, bin); if (pmod-...
static int binary_model_finish(bin_info *bin, MODEL *pmod, const DATASET *dset, gretlopt opt) { int i; for (i = 0; i < pmod->ncoeff; i++) { pmod->coeff[i] = bin->theta[i]; } pmod->ci = bin->ci; pmod->lnL = binary_loglik(pmod->coeff, bin); if (pmod->ci == PROBIT && (opt ...
binary_model_finish
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void binary_model_hatvars(MODEL *pmod, const gretl_matrix *ndx, const int *y, gretlopt opt) { int v4; long v5; double v6; double v7; char opta; int i; int s; int t; int ta; int n; int yt; double *ll; double F; int *act_pred; double ndxt; double endxt; opta = ...
void binary_model_hatvars(MODEL *pmod, const gretl_matrix *ndx, const int *y, gretlopt opt) { int *act_pred; double *ll = NULL; double F; int n = pmod->full_n; int i, s, t; act_pred = malloc(4 * sizeof *act_pred); if (act_pred != NULL) { for (i = 0; i < 4; i++) { act_p...
binary_model_hatvars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *binary_probit(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { binary_model(retstr, 102, list, dset, opt, prn); return retstr; }
MODEL binary_probit(const int *list, DATASET *dset, gretlopt opt, PRN *prn) { return binary_model(PROBIT, list, dset, opt, prn); }
binary_probit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_probit_normtest(MODEL *pmod, bin_info *bin) { int i; int s; int t; int ta; int k; int err; gretl_matrix *X; gretl_matrix *y; gretl_matrix *b; double X2; gretl_matrix_block *B; double et; double Xb; double xti; unsigned long v17; v17 = __readfsqword(0x28u); k = bin->k; B =...
static int binary_probit_normtest(MODEL *pmod, bin_info *bin) { gretl_matrix_block *B; gretl_matrix *X, *y, *b; double xti, Xb, et; int k = bin->k; int i, s, t; int err = 0; B = gretl_matrix_block_new(&X, bin->T, k + 2, &y, bin->T, 1, &b, k + 2, 1, NULL); if (B == NULL) { ...
binary_probit_normtest
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_score(double *theta, double *s, int k, BFGS_CRIT_FUNC ll, void *ptr) { double v5; int t; int j; int ja; int yt; double w; double ndx; for (j = 0; j < *((_DWORD *)ptr + 1); ++j) s[j] = 0.0; for (t = 0; t < *((_DWORD *)ptr + 2); ++t) { yt = *(_DWORD *)(*((_QWORD *)pt...
static int binary_score(double *theta, double *s, int k, BFGS_CRIT_FUNC ll, void *ptr) { bin_info *bin = (bin_info *)ptr; double ndx, w; int t, j, yt; int err = 0; for (j = 0; j < bin->k; j++) { s[j] = 0.0; } for (t = 0; t < bin->T; t++) { yt = bin->y[t]; ndx = gretl_...
binary_score
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *binary_score_matrix(bin_info *bin, int *err) { double v3; int j; int t; int yt; double w; gretl_matrix *G; double ndx; G = gretl_matrix_alloc(bin->T, bin->k); if (G) { for (t = 0; t < bin->T && !*__errno_location(); ++t) { yt = bin->y[t]; ndx = bin->Xb->val[t]; if ...
static gretl_matrix *binary_score_matrix(bin_info *bin, int *err) { gretl_matrix *G; double w, ndx, xtj; int yt, j, t; G = gretl_matrix_alloc(bin->T, bin->k); if (G == NULL) { *err = E_ALLOC; return NULL; } for (t = 0; t < bin->T && !errno; t++) { yt = bin->y[t]; ndx = gretl_vector_get(...
binary_score_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binary_variance_matrix(MODEL *pmod, bin_info *bin, const DATASET *dset, gretlopt opt) { int err; gretl_matrix *G; gretl_matrix *H; unsigned long v10; v10 = __readfsqword(0x28u); H = 0; G = 0; err = 0; H = binary_hessian_inverse(bin, &err); if (err) return err; i...
static int binary_variance_matrix(MODEL *pmod, bin_info *bin, const DATASET *dset, gretlopt opt) { gretl_matrix *H = NULL; gretl_matrix *G = NULL; int err = 0; H = binary_hessian_inverse(bin, &err); if (err) { return err; } if (opt & OPT_R) { G = binary_score_ma...
binary_variance_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bincoeff(double n, double k, int *err) { double v4; double v5; double v6; if (k <= n && k >= 0.0) { if (n == k || k == 0.0) return 1.0; if (n - k == 1.0 || k == 1.0) return n; v4 = lgamma(n + 1.0); v6 = v4 - lgamma(k + 1.0); v5 = lgamma(n - k + 1.0); return exp(v6 - v...
static double bincoeff(double n, double k, int *err) { double ret; if ((n < k) || (k < 0)) { *err = E_INVARG; return NADBL; } if (n == k || k == 0) { ret = 1.0; } else if ((n - k) == 1 || k == 1) { ret = n; } else { ret = lgamma(n + 1) - lgamma(k + 1) - lgamma(n - k + 1); ret = exp...
bincoeff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bininv_binary(double p, int n, double u) { double v3; int v4; double v5; double v6; int klo; int khi; int kmid; int ke; int ke1; int evals; int ret; int emax; int k1_0; double f; double f1; double fe; double fe1; double pdmax; double mu; klo = 0; khi = n; evals = 0; re...
static int bininv_binary(double p, int n, double u) { int klo = 0; int khi = n; int kmid, ke, ke1; double f, f1; double fe, fe1; double mu, pdmax; int evals = 0; int nk, emax; int ret = -1; if (u > 0.5) { klo = floor(n * p) - 1; } else if (u < 0.5) { khi = floor(n * p) + 1; } kmid = ...
bininv_binary
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bininv_sum(double p, int n, double u) { int k; double a; double aa; double s; double sa; k = 1; if (binomial_cdf(p, n, n / 2) < u) { aa = pow(p, (double)n); sa = 1.0 - u - aa; while (sa >= 0.0) { aa = (double)(n - k + 1) * ((1.0 - p) * aa / p) / (double)k; sa = sa - aa; ...
static int bininv_sum(double p, int n, double u) { double f, a, s; int k = 1; f = binomial_cdf(p, n, n / 2); if (u <= f) { a = pow(1 - p, n); s = a - u; while (s < 0) { a = (a * p / (1 - p)) * (n - k + 1) / k; s += a; k++; } return k - 1; } else { a = pow(p, n); ...
bininv_sum
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binomial_cdf(double p, int n, int k) { double x; x = NAN; if (p >= 0.0 && n >= 0 && k >= 0) { x = bdtr(k, n, p); if (get_cephes_errno()) return NAN; } return x; }
double binomial_cdf(double p, int n, int k) { double x = NADBL; if (p >= 0 && n >= 0 && k >= 0) { x = bdtr(k, n, p); if (get_cephes_errno()) { x = NADBL; } } return x; }
binomial_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binomial_cdf_comp(double p, int n, int k) { double x; x = NAN; if (p >= 0.0 && n >= 0 && k >= 0) { x = bdtrc(k, n, p); if (get_cephes_errno()) return NAN; } return x; }
double binomial_cdf_comp(double p, int n, int k) { double x = NADBL; if (p >= 0 && n >= 0 && k >= 0) { x = bdtrc(k, n, p); if (get_cephes_errno()) { x = NADBL; } } return x; }
binomial_cdf_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binomial_cdf_inverse(double p, int n, double u) { int k; int ka; double x; x = NAN; if (u > 0.0 && u <= 1.0 && n > 0 && p > 0.0 && p < 1.0) { if (u == 1.0) { return (double)n; } else if (n > 499) { ka = bininv_binary(p, n, u); if (ka >= 0) return (double)ka; } els...
static double binomial_cdf_inverse(double p, int n, double u) { double x = NADBL; int k; if (u <= 0 || u > 1 || n <= 0 || p <= 0 || p >= 1) { ; } else if (u == 1.0) { x = n; } else if (n < 500) { k = bininv_sum(p, n, u); if (k >= 0) { x = k; } } else { k = bininv_binary(p, n, ...
binomial_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binomial_critval(double p, int n, double a) { int k; if (n <= 0 || p <= 0.0 || p >= 1.0 || a <= 0.0 || a >= 1.0) return NAN; for (k = n; k > 0 && 1.0 - a <= binomial_cdf(p, n, k); --k) ; return (double)(k + 1); }
static double binomial_critval(double p, int n, double a) { double pk, ac = 1 - a; int k; if (n <= 0 || p <= 0 || p >= 1 || a <= 0 || a >= 1) { return NADBL; } for (k = n; k > 0; k--) { pk = binomial_cdf(p, n, k); if (pk < ac) { break; } } return (double)(k + 1); }
binomial_critval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double binomial_pmf(double p, int n, int k) { double pm; pm = binomial_cdf(p, n, k); if (k > 0 && fabs(pm) <= 1.797693134862316e308) return pm - binomial_cdf(p, n, k - 1); return pm; }
double binomial_pmf(double p, int n, int k) { double pm = binomial_cdf(p, n, k); if (k > 0 && !na(pm)) { pm -= binomial_cdf(p, n, k - 1); } return pm; }
binomial_pmf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binomial_pmf_array(double p, int n, double *x, int T) { int i; int k; double pm; for (i = 0; i < T; ++i) { k = (int)x[i]; pm = binomial_cdf(p, n, k); if (k > 0 && fabs(pm) <= 1.797693134862316e308) pm = pm - binomial_cdf(p, n, k - 1); x[i] = pm; } return 0; }
static int binomial_pmf_array(double p, int n, double *x, int T) { double pm; int i, k; for (i = 0; i < T; i++) { k = x[i]; pm = binomial_cdf(p, n, k); if (k > 0 && !na(pm)) { pm -= binomial_cdf(p, n, k - 1); } x[i] = pm; } return 0; }
binomial_pmf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int binsearch(keynum targ, const keynum *vals, int n, int offset) { int m; m = n / 2; if (fabs(targ - vals[n / 2]) < 0.0000001) return m + offset; if (*vals > targ || targ > vals[n - 1]) return -1; if (vals[m] <= targ) return binsearch(targ, &vals[m], n - m, m + offset); return binsearch(targ, ...
static int binsearch(keynum targ, const keynum *vals, int n, int offset) { int m = n / 2; if (fabs((targ) - (vals[m])) < 1.0e-7) { return m + offset; } else if (targ < vals[0] || targ > vals[n - 1]) { return -1; } else if (targ < vals[m]) { return binsearch(targ, vals, m, offset); } else { re...
binsearch
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *biprobit_model(MODEL *__return_ptr retstr, int *list, DATASET *dset, gretlopt opt, PRN *prn) { _BYTE v6[376]; PRN *prna; gretlopt opta; DATASET *dseta; int *lista; MODEL *v11; MODEL (*biprobit_estimate)(const int *, DATASET *, gretlopt, PRN *); MODEL bpmod; unsigned long v...
MODEL biprobit_model(int *list, DATASET *dset, gretlopt opt, PRN *prn) { MODEL bpmod; MODEL (*biprobit_estimate)(const int *, DATASET *, gretlopt, PRN *); gretl_error_clear(); biprobit_estimate = get_plugin_function("biprobit_estimate"); if (biprobit_estimate == NULL) { gretl_model_init(&bpmod, dset); ...
biprobit_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bkbp_filter(const double *x, double *bk, const DATASET *dset, int bkl, int bku, int k) { double v7; double v8; double v9; int bkua; int bkla; const DATASET *dseta; double *bka; const double *xa; int t1; int t2; int i; int t; int lowpass; int err; double avg_a; double ...
int bkbp_filter(const double *x, double *bk, const DATASET *dset, int bkl, int bku, int k) { int t1 = dset->t1, t2 = dset->t2; double omubar, omlbar; double avg_a; double *a; int i, t, err = 0; int lowpass = 0; if (bkl <= 0 || bku <= 0) { get_bkbp_periods(dset, &bkl, &bku); } if...
bkbp_filter
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *bkw_node(NODE *l, NODE *m, NODE *r, parser *p) { char *v4; int ns; gretl_array *pnames; PRN *vprn; NODE *ret; const gretl_matrix *V; char **S; gretl_matrix *(*bkwfunc)(const gretl_matrix *, gretl_array *, PRN *, int *); unsigned long v15; v15 = __readfsqword(0x28u); ret = get_aux_node(p, 57...
static NODE *bkw_node(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL && starting(p)) { const gretl_matrix *V = l->v.m; gretl_array *pnames = NULL; PRN *vprn = NULL; int ns = 0; if (!null_node(m)) { if (m->t == STR) { char **S = gretl_stri...
bkw_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bkw_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int (*compute_bkw)(MODEL *, DATASET *, gretlopt, PRN *); gretl_error_clear(); compute_bkw = (int (*)(MODEL *, DATASET *, gretlopt, PRN *))get_plugin_function("compute_bkw"); if (compute_bkw) return compute_bkw(pmod,...
int bkw_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int (*compute_bkw)(MODEL *, DATASET *, gretlopt, PRN *); gretl_error_clear(); compute_bkw = get_plugin_function("compute_bkw"); if (compute_bkw == NULL) { return 1; } return (*compute_bkw)(pmod, dset, opt, prn); }
bkw_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int blank_user_line(GPT_LINE *line) { return (line->flags & 1) != 0 && string_is_blank(line->formula); }
static int blank_user_line(GPT_LINE *line) { return ((line->flags & GP_LINE_USER) && string_is_blank(line->formula)); }
blank_user_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int blas_get_num_threads() { if (OB_get_num_threads) return OB_get_num_threads(); else return 0; }
int blas_get_num_threads(void) { if (OB_get_num_threads != NULL) { return OB_get_num_threads(); } else { return 0; } }
blas_get_num_threads
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void blas_init() { void *ptr; ptr = dlopen(0, 2); if (ptr) { OB_set_num_threads = (void (*)(int))dlsym(ptr, "openblas_set_num_threads"); OB_get_num_threads = (int (*)(void))dlsym(ptr, "openblas_get_num_threads"); if (OB_set_num_threads) { blas_variant = 3; register_openblas_details(ptr); ...
static void blas_init(void) { void *ptr = NULL; #if defined(OS_OSX) && defined(PKGBUILD) blas_variant = BLAS_VECLIB; return; #endif ptr = dlopen(NULL, RTLD_NOW); if (ptr != NULL) { OB_set_num_threads = dlsym(ptr, "openblas_set_num_threads"); OB_get_num_threads = dlsym(ptr, "openblas_get_num_threads...
blas_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int blas_is_openblas() { return blas_variant == 3; }
int blas_is_openblas(void) { return blas_variant == BLAS_OPENBLAS; }
blas_is_openblas
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void blas_set_num_threads(int nt) { if (OB_set_num_threads) OB_set_num_threads(nt); }
void blas_set_num_threads(int nt) { if (OB_set_num_threads != NULL) { OB_set_num_threads(nt); } }
blas_set_num_threads
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *blas_variant_string() { switch (blas_variant) { case 1: return "netlib"; case 2: return "atlas"; case 3: return "openblas"; case 4: return "mkl"; case 5: return "veclib"; } return "unknown"; }
const char *blas_variant_string(void) { if (blas_variant == BLAS_NETLIB) { return "netlib"; } else if (blas_variant == BLAS_ATLAS) { return "atlas"; } else if (blas_variant == BLAS_OPENBLAS) { return "openblas"; } else if (blas_variant == BLAS_MKL) { return "mkl"; } else if (blas_variant == BL...
blas_variant_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int block_model(CMD *cmd) { return cmd->ci == 33 && (!strcmp(cmd->param, "mle") || !strcmp(cmd->param, "nls") || !strcmp(cmd->param, "gmm")); }
static int block_model(CMD *cmd) { return cmd->ci == END && (!strcmp(cmd->param, "mle") || !strcmp(cmd->param, "nls") || !strcmp(cmd->param, "gmm")); }
block_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int block_resample_series(const double *x, double *y, int blocklen, const DATASET *dset) { int v5; int t1; int t2; int i; int s; int t; int n; int m; int rem; int bt2; int x0; int *z; unsigned long v18; v18 = __readfsqword(0x28u); t1 = dset->t1; t2 = dset->t2; ...
int block_resample_series(const double *x, double *y, int blocklen, const DATASET *dset) { int t1 = dset->t1; int t2 = dset->t2; int *z = NULL; int m, rem, bt2, x0; int i, s, t, n; if (dataset_is_panel(dset)) { return E_PDWRONG; } if (blocklen <= 0) { return E_DATA; ...
block_resample_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bmv_(int *m, double *sy, double *wt, int *col, double *v, double *p, int *info) { double v8; double v9; double *pa; double *va; double *wta; double *sya; int i__; int i__a; int i__b; int i__c; int k; int ka; int wt_offset; int sy_dim1; int i__1; int i__1a; int i__1b; int...
static int bmv_(int *m, double *sy, double *wt, int *col, double *v, double *p, int *info) { int sy_dim1, sy_offset, wt_dim1, wt_offset, i__1, i__2; int i__, k, i2; double sum; wt_dim1 = *m; wt_offset = 1 + wt_dim1; wt -= wt_offset; sy_dim1 = *m; sy_offset = 1 + sy_dim1; sy -= sy_off...
bmv_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bname_is_temp(const char *name) { return !strncmp(name, "btmp___", 7u) && ((*__ctype_b_loc())[name[7]] & 0x800) != 0; }
static int bname_is_temp(const char *name) { return !strncmp(name, "btmp___", 7) && isdigit(name[7]); }
bname_is_temp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bnum_from_name(gretl_restriction *r, const DATASET *dset, const char *s) { char *v3; int k; int i; int v; GRETL_VAR *var; k = -1; if (dset && r->obj) { if (r->otype == GRETL_OBJ_VAR) { var = (GRETL_VAR *)r->obj; for (i = 1; i <= *var->ylist; ++i) { v = var->ylist[i]; i...
static int bnum_from_name(gretl_restriction *r, const DATASET *dset, const char *s) { int k = -1; if (dset == NULL || r->obj == NULL) { ; } else if (r->otype == GRETL_OBJ_VAR) { GRETL_VAR *var = r->obj; int i, v; for (i = 1; i <= var->ylist[0]; i++) { v = var->yli...
bnum_from_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bnum_out_of_bounds(const gretl_restriction *rset, int eq, int bnum, char letter) { char *v4; char *v5; char *v6; char *v7; char *v8; int ret; int *list; GRETL_VAR *var; ret = 1; if (rset->otype == GRETL_OBJ_VAR) { var = (GRETL_VAR *)rset->obj; if (!gretl_VECM_rank...
static int bnum_out_of_bounds(const gretl_restriction *rset, int eq, int bnum, char letter) { int ret = 1; if (rset->otype == GRETL_OBJ_VAR) { GRETL_VAR *var = rset->obj; int r = gretl_VECM_rank(var); if (r == 0) { if (eq >= var->neqns) { gretl_errmsg_sprint...
bnum_out_of_bounds
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boot_allocate(irfboot *b, const GRETL_VAR *v) { int err; int n; int np; unsigned long v6; v6 = __readfsqword(0x28u); n = v->neqns; np = ((v->ci == 138) + v->order) * n; err = 0; if (b->nresp <= 1) { b->MB = gretl_matrix_block_new( &b->rtmp, (unsigned int)np, (unsigned int)n, &b->wk1, ...
static int boot_allocate(irfboot *b, const GRETL_VAR *v) { int n = v->neqns; int np = n * effective_order(v); int err = 0; if (b->nresp > 1) { b->aresp = gretl_matrix_array_sized(b->nresp, b->horizon, b->iters, &err); if (!err) { b->MB = gretl_matrix_block_new(&b->rtmp, np, n, &b->wk1, n, n, &b->...
boot_allocate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boot_calc_1(boot *bs, gretl_matrix *XTX, gretl_matrix *XTXI, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *h) { int err; if (Q) { gretl_matrix_copy_values(Q, bs->X); err = gretl_matrix_QR_decomp(Q, R); if (!err) err = gretl_invert_triangular_matrix(R, 85); if (!err) { ...
static int boot_calc_1(boot *bs, gretl_matrix *XTX, gretl_matrix *XTXI, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *h) { int err = 0; if (Q != NULL) { gretl_matrix_copy_values(Q, bs->X); err = gretl_matrix_QR_decomp(Q, R); if (!err) { err = gretl_invert_triangular_matr...
boot_calc_1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boot_calc_2(boot *bs, gretl_matrix *XTX, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *g, gretl_matrix *b, gretl_matrix *yh, double *ps2) { int err; int t; double SSR; double ut; err = 0; if (Q) { gretl_matrix_multiply_mod(Q, GRETL_MOD_TRANSPOSE, bs->y, GRETL_MOD_N...
static int boot_calc_2(boot *bs, gretl_matrix *XTX, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *g, gretl_matrix *b, gretl_matrix *yh, double *ps2) { int err = 0; if (Q != NULL) { gretl_matrix_multiply_mod(Q, GRETL_MOD_TRANSPOSE, bs->y, GRETL_MOD_NONE, g, ...
boot_calc_2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void boot_destroy(boot *bs) { if (bs) { gretl_matrix_free(bs->y); gretl_matrix_free(bs->X); gretl_matrix_free(bs->y0); gretl_matrix_free(bs->X0); gretl_matrix_free(bs->b0); gretl_matrix_free(bs->u0); gretl_matrix_free(bs->w); if ((bs->flags & 0x400) != 0) { gretl_matrix_free(bs->...
static void boot_destroy(boot *bs) { if (bs == NULL) { return; } gretl_matrix_free(bs->y); gretl_matrix_free(bs->X); gretl_matrix_free(bs->y0); gretl_matrix_free(bs->X0); gretl_matrix_free(bs->b0); gretl_matrix_free(bs->u0); gretl_matrix_free(bs->w); if (bs->flags & BOOT_FREE_RQ) { gretl_m...
boot_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double boot_hac_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, gretl_matrix *d, gretl_matrix *V, int *err) { int j; double tau; gretl_matrix *XOX; tau = NAN; j = bs->p; XOX = HAC_XOX(bs->X, d, bs->vi, 1, err); if (!*err) { gretl_matrix_qform(XTXI, GRETL_MOD_TRANSPO...
static double boot_hac_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, gretl_matrix *d, gretl_matrix *V, int *err) { gretl_matrix *XOX; double se, tau = NADBL; int j = bs->p; XOX = HAC_XOX(bs->X, d, bs->vi, 1, err); if (!*err) { gretl_...
boot_hac_tau
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boot_hac_vcv(boot *bs, const gretl_matrix *XTXI, gretl_matrix *d, gretl_matrix *V) { int err; gretl_matrix *XOX; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; XOX = HAC_XOX(bs->X, d, bs->vi, 1, &err); if (!err) { err = gretl_matrix_qform(XTXI, GRETL_MOD_TRANSPOSE, XOX, V,...
static int boot_hac_vcv(boot *bs, const gretl_matrix *XTXI, gretl_matrix *d, gretl_matrix *V) { gretl_matrix *XOX; int err = 0; XOX = HAC_XOX(bs->X, d, bs->vi, 1, &err); if (!err) { err = gretl_matrix_qform(XTXI, GRETL_MOD_TRANSPOSE, XOX, V, GRETL_MOD_NONE); if (err) { fp...
boot_hac_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double boot_hc_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, const gretl_matrix *h, gretl_matrix *d, gretl_matrix *V, int *err) { int j; double tau; tau = NAN; j = bs->p; *err = qr_matrix_hccme(bs->X, h, XTXI, d, V, bs->hc_version); if (!*err) retu...
static double boot_hc_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, const gretl_matrix *h, gretl_matrix *d, gretl_matrix *V, int *err) { double se, tau = NADBL; int j = bs->p; *err = qr_matrix_hccme(bs->X, h, XTXI, d, V, bs->hc_version); if (...
boot_hc_tau
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
boot *boot_new(const MODEL *pmod, const DATASET *dset, int B, double alpha, gretlopt opt, int *err) { int flags; boot *bs; bs = (boot *)malloc(0xD8u); if (!bs) return 0; bs->ldv = 0; if ((opt & 0x800000) != 0 || (*err = make_boot_ldvinfo(bs, pmod, dset)) == 0) { bs->y = 0; ...
static boot *boot_new(const MODEL *pmod, const DATASET *dset, int B, double alpha, gretlopt opt, int *err) { boot *bs; bs = malloc(sizeof *bs); if (bs == NULL) { return NULL; } bs->ldv = NULL; if (!(opt & OPT_X)) { *err = make_boot_ldvinfo(bs, pmod, dset); if (*err) { ...
boot_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double boot_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, double s2) { int j; j = bs->p; return (b->val[j] - bs->bp0) / sqrt(s2 * XTXI->val[j * XTXI->rows + j]); }
static double boot_tau(boot *bs, const gretl_matrix *XTXI, const gretl_matrix *b, double s2) { double vpp, se; int j = bs->p; vpp = gretl_matrix_get(XTXI, j, j); se = sqrt(s2 * vpp); return (b->val[j] - bs->bp0) / se; }
boot_tau
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bootstrap_analysis(MODEL *pmod, int p, int B, double alpha, const DATASET *dset, gretlopt opt, PRN *prn) { int err; int v; boot *bs; unsigned long v15; v15 = __readfsqword(0x28u); bs = 0; err = 0; if (!bootstrap_ok(pmod->ci)) return 8; if (model_sample_problem(pmod, dse...
int bootstrap_analysis(MODEL *pmod, int p, int B, double alpha, const DATASET *dset, gretlopt opt, PRN *prn) { boot *bs = NULL; int err = 0; if (!bootstrap_ok(pmod->ci)) { return E_NOTIMP; } if (model_sample_problem(pmod, dset)) { return E_DATA; } if (p < 0 || p >= pmod->...
bootstrap_analysis
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *bootstrap_ci_matrix(const MODEL *pmod, const DATASET *dset, int p, int B, double alpha, int method, int studentize, int *err) { int flags; double alphaa; int pb; gretlopt opt; gretl_matrix *ci; boot *bs; unsigned long v19; ...
gretl_matrix *bootstrap_ci_matrix(const MODEL *pmod, const DATASET *dset, int p, int B, double alpha, int method, int studentize, int *err) { gretl_matrix *ci = NULL; gretlopt opt = OPT_S; boot *bs = NULL; if (!bootstrap_ok(pmod->ci)) { *e...
bootstrap_ci_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bootstrap_ok(int ci) { return ci == 88 || ci == 140; }
int bootstrap_ok(int ci) { return (ci == OLS || ci == WLS); }
bootstrap_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bootstrap_pvalue(const MODEL *pmod, const DATASET *dset, int p, int B, int method, int *err) { int flags; int pb; gretlopt opt; double pval; boot *bs; unsigned long v16; v16 = __readfsqword(0x28u); pval = NAN; opt = (int)saved_object_get_matrix; bs = 0; if (bootstra...
double bootstrap_pvalue(const MODEL *pmod, const DATASET *dset, int p, int B, int method, int *err) { double pval = NADBL; gretlopt opt = OPT_P | OPT_S; boot *bs = NULL; if (!bootstrap_ok(pmod->ci)) { *err = E_NOTIMP; return NADBL; } if (model_sample_problem(pmod, dset)) { ...
bootstrap_pvalue
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bootstrap_save_data(const char *fname) { int ns; int err; char **S[2]; S[1] = (char **)__readfsqword(0x28u); S[0] = 0; ns = 0; if (!bs_data) return 2; err = strings_array_add(S, &ns, bs_vname); if (!err) { err = gretl_matrix_write_as_gdt(fname, bs_data, (const char **)S[0], 0); gretl_...
int bootstrap_save_data(const char *fname) { char **S = NULL; int err, ns = 0; if (bs_data == NULL) { return E_DATA; } err = strings_array_add(&S, &ns, bs_vname); if (err) { return err; } err = gretl_matrix_write_as_gdt(fname, bs_data, (const char **)S, NULL); gretl_matrix_free(bs_data); ...
bootstrap_save_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bootstrap_test_restriction(MODEL *pmod, gretl_matrix *R, gretl_matrix *q, double test, int g, const DATASET *dset, gretlopt opt, int method, PRN *prn) { int flags; char *vname; gretlopt bopt; int B; int err; boot *bs; unsigned long v20; ...
int bootstrap_test_restriction(MODEL *pmod, gretl_matrix *R, gretl_matrix *q, double test, int g, const DATASET *dset, gretlopt opt, int method, PRN *prn) { gretlopt bopt = OPT_P | OPT_R | OPT_F; boot *bs = NULL; int B = 0; int err = 0; if (method...
bootstrap_test_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bootstrap_zero_restriction(gretl_restriction *rset, MODEL *pmod, const DATASET *dset, int method, PRN *prn) { gretlopt v5; gretlopt bopt; int B; int err; rrow *r; unsigned long v13; v13 = __readfsqword(0x28u); r = *rset->rows; bopt = (int)&word_28000; B = 0; err...
static int bootstrap_zero_restriction(gretl_restriction *rset, MODEL *pmod, const DATASET *dset, int method, PRN *prn) { rrow *r = rset->rows[0]; gretlopt bopt = OPT_P | OPT_R; int B = 0; int err = 0; if (rset->opt & OPT_S) { bo...
bootstrap_zero_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void box_stats_leader(PLOTGROUP *grp, int i, int offset, PRN *prn) { BOXPLOT *plt; char numstr[40]; unsigned long v8; v8 = __readfsqword(0x28u); plt = &grp->plots[i]; if ((grp->flags & 0x10) != 0) { memset(numstr, 0, 32); if (grp->dvals) { sprintf(numstr, "%g", grp->dvals->val[i]); } else...
static void box_stats_leader(PLOTGROUP *grp, int i, int offset, PRN *prn) { BOXPLOT *plt = &grp->plots[i]; if (factorized(grp)) { char numstr[32] = ""; if (grp->dvals != NULL) { sprintf(numstr, "%g", gretl_vector_get(grp->dvals, i)); } else if (grp->pan_min > 0) { sprintf(numstr, "%d", grp...
box_stats_leader
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *boxcox_matrix(const gretl_matrix *m, double d, int *err) { int j; int n; double *x; double *y; gretl_matrix *bc; bc = gretl_matrix_alloc(m->rows, m->cols); if (bc) { x = m->val; y = bc->val; n = m->rows; for (j = 0; j < m->cols; ++j) { boxcox_vector(x, y, d, 0, n - 1);...
gretl_matrix *boxcox_matrix(const gretl_matrix *m, double d, int *err) { gretl_matrix *bc; bc = gretl_matrix_alloc(m->rows, m->cols); if (bc == NULL) { *err = E_ALLOC; } else { const double *x = m->val; double *y = bc->val; int j, n = m->rows; for (j = 0; j < m->cols; j++) { boxcox_...
boxcox_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boxcox_series(const double *x, double *y, double d, const DATASET *dset) { return boxcox_vector(x, y, d, dset->t1, dset->t2); }
int boxcox_series(const double *x, double *y, double d, const DATASET *dset) { return boxcox_vector(x, y, d, dset->t1, dset->t2); }
boxcox_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boxcox_vector(const double *x, double *y, double d, int t1, int t2) { double v5; double v6; double v7; double v8; double v9; int special_case; special_case = 999; if (fabs(d) >= 1.0e-12) { if (fabs(1.0 - d) >= 1.0e-12) { if (fabs(-1.0 - d) >= 1.0e-12) { if (fabs(0.5 - d) >= 1.0e-1...
static int boxcox_vector(const double *x, double *y, double d, int t1, int t2) { int t, special_case = 999; double tol = 1.0e-12; if (fabs(d) < tol) { special_case = 0; } else if (fabs(1.0 - d) < tol) { special_case = 1; } else if (fabs(-1.0 - d) < tol) { special_case = -1; } else if (fabs(0.5 ...
boxcox_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void boxplot_init(BOXPLOT *bp_0) { bp_0->mean = NAN; bp_0->median = NAN; bp_0->conf[1] = NAN; bp_0->conf[0] = bp_0->conf[1]; bp_0->lq = NAN; bp_0->uq = bp_0->lq; bp_0->min = NAN; bp_0->max = bp_0->min; bp_0->wmin = NAN; bp_0->wmax = bp_0->wmin; bp_0->n = 0; bp_0->varname[0] = 0; bp_0->bool = 0...
static void boxplot_init(BOXPLOT *bp) { bp->mean = NADBL; bp->median = NADBL; bp->conf[0] = bp->conf[1] = NADBL; bp->uq = bp->lq = NADBL; bp->max = bp->min = NADBL; bp->wmax = bp->wmin = NADBL; bp->n = 0; bp->varname[0] = '\0'; bp->bool = NULL; bp->outliers = NULL; }
boxplot_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boxplot_numerical_summary(const char *fname, PRN *prn) { BOXPLOT *plots; int v4; int n; int block; int factorized; int plotlines; int parsing; int pan_min; int err; int i; int outliers; PLOTGROUP *grp; FILE *fp; char *label; int list[2]; char fmt[16]; char tfmt[16]; char yvar[32]...
int boxplot_numerical_summary(const char *fname, PRN *prn) { PLOTGROUP *grp = NULL; int factorized = 0; int plotlines = 0; char yvar[VNAMELEN]; char xvar[VNAMELEN]; char title[128]; char fmt[16], tfmt[16], line[512]; int parsing = 1; int pan_min = 0; FILE *fp; int n = 0; int err = 0; fp = gre...
boxplot_numerical_summary
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boxplot_print_stats(PLOTGROUP *grp, PRN *prn) { char *v2; char *v3; char *v4; int v5; char *v6; char *v7; char *v8; char *v9; char *v10; int do_mean; int offset; int pad; int i; int ia; do_mean = 0; if ((grp->flags & 0x10) != 0) offset = strlen(grp->xlabel) + 2; else offse...
static int boxplot_print_stats(PLOTGROUP *grp, PRN *prn) { int do_mean = 0; int offset, pad, i; if (factorized(grp)) { offset = strlen(grp->xlabel) + 2; } else { offset = get_format_offset(grp); } if (do_intervals(grp)) { pprintf(prn, "%s\n\n", _("Numerical summary with bootstrappe...
boxplot_print_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int boxplots(const int *list, const char *literal, const DATASET *dset, gretlopt opt) { if ((opt & 0x8000) == 0) return real_boxplots(list, dset, literal, 0, opt); if (multi_unit_panel_sample(dset) && *list <= 1 && (opt & 0x1000000) == 0) return panel_group_boxplots(list[1], dset, literal, opt)...
int boxplots(const int *list, const char *literal, const DATASET *dset, gretlopt opt) { int err; if (opt & OPT_P) { if (!multi_unit_panel_sample(dset) || list[0] > 1 || (opt & OPT_Z)) { err = E_BADOPT; } else { err = panel_group_boxplots(list[1], dset, literal, opt); } } else...
boxplots
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int breusch_pagan_LM(panelmod_t *pan, PRN *prn) { char *v2; char *v3; double v4; char *v5; char *v6; double BP; _BOOL4 print_means; int i; int t; int M; int n; int Ti; double A; double usum; double u; A = 0.0; n = pan->pooled->nobs; print_means = 0; M = 0; if ((pan->opt & 0x2000...
static int breusch_pagan_LM(panelmod_t *pan, PRN *prn) { double A = 0.0; int n = pan->pooled->nobs; int print_means = 0; int i, t, M = 0; if ((pan->opt & OPT_V) && pan->effn <= 10) { print_means = 1; } if (print_means) { pputs(prn, _("Means of pooled OLS residuals for cross-sectional units:")); ...
breusch_pagan_LM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int broken_gradient(double *g, int n) { int i; for (i = 0; i < n; ++i) ; return 0; }
static int broken_gradient(double *g, int n) { int i; for (i = 0; i < n; i++) { if (isnan(g[i])) { return 1; } } return 0; }
broken_gradient
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int broken_matrix(const gretl_matrix *m) { int i; for (i = 0; i < m->rows * m->cols; ++i) { if (fabs(m->val[i]) > 1.797693134862316e308) return 1; } return 0; }
static int broken_matrix(const gretl_matrix *m) { int i, n = m->rows * m->cols; for (i = 0; i < n; i++) { if (na(m->val[i])) { return 1; } } return 0; }
broken_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int broken_package_error(fnpkg *pkg) { gretl_errmsg_sprintf("'%s': package contains duplicated function names", pkg->name); return 2; }
static int broken_package_error(fnpkg *pkg) { gretl_errmsg_sprintf("'%s': package contains " "duplicated function names", pkg->name); return E_DATA; }
broken_package_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double bs_F_test(const gretl_matrix *b, const gretl_matrix *V, boot *bs, int *errp) { int err; double test; gretl_vector *br; gretl_matrix *RVR; unsigned long v11; v11 = __readfsqword(0x28u); br = 0; RVR = 0; test = 0.0; err = 0; br = gretl_matrix_alloc(bs->g, 1); RVR = gretl_m...
static double bs_F_test(const gretl_matrix *b, const gretl_matrix *V, boot *bs, int *errp) { gretl_vector *br = NULL; gretl_matrix *RVR = NULL; double test = 0.0; int err = 0; br = gretl_column_vector_alloc(bs->g); RVR = gretl_matrix_alloc(bs->R->rows, bs->R->rows); if (br == NUL...
bs_F_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bs_add_restriction(boot *bs, int p) { int flags; bs->R = gretl_zero_matrix_new(1, bs->b0->rows); bs->q = gretl_zero_matrix_new(1, 1); if (!bs->R || !bs->q) return 12; flags = bs->flags; BYTE1(flags) = BYTE1(bs->flags) | 4; bs->flags = flags; bs->R->val[p] = 1.0; return 0; }
static int bs_add_restriction(boot *bs, int p) { bs->R = gretl_zero_matrix_new(1, bs->b0->rows); bs->q = gretl_zero_matrix_new(1, 1); if (bs->R == NULL || bs->q == NULL) { return E_ALLOC; } bs->flags |= BOOT_FREE_RQ; gretl_vector_set(bs->R, p, 1.0); return 0; }
bs_add_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bs_calc_ci(boot *bs, gretl_matrix *xi, gretl_matrix *ci) { int i; double ql; double qu; qsort(xi->val, bs->B, 8u, (__compar_fn_t)gretl_compare_doubles); i = (int)((double)(bs->B + 1) * bs->a / 2.0); ql = xi->val[i - 1]; qu = xi->val[bs->B - i]; if ((bs->flags & 0x40) != 0) { *ci->val = bs->poi...
static void bs_calc_ci(boot *bs, gretl_matrix *xi, gretl_matrix *ci) { double ql, qu; int i, j; qsort(xi->val, bs->B, sizeof *xi->val, gretl_compare_doubles); i = bs->a * (bs->B + 1) / 2.0; ql = xi->val[i - 1]; j = bs->B - i + 1; qu = xi->val[j - 1]; #if BDEBUG fprintf(stderr, "B = %d, ci indices = ...
bs_calc_ci
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bs_print_result(boot *bs, gretl_matrix *xi, int tail, PRN *prn) { char *v4; double point; char *v6; double pval; int B; char *v9; double v10; char *v11; unsigned int v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; int i; double ql; double qu; ...
static void bs_print_result(boot *bs, gretl_matrix *xi, int tail, PRN *prn) { if (bs->flags & BOOT_F_FORM) { pprintf(prn, "\n%s: ", _("bootstrap F-test")); } else if (bs->flags & BOOT_RESTRICT) { pputs(prn, "\n "); } else { pprintf(prn, _("For the coefficient on %s (point estimate %g)"), bs->vname, ...
bs_print_result
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void bs_store_result(boot *bs, gretl_matrix **rp) { if (bs_data) { gretl_matrix_free(bs_data); bs_data = 0; } bs_data = *rp; *rp = 0; bs_vname[0] = 0; if ((bs->flags & 0x200) != 0) { strcpy(bs_vname, "F_test"); } else { if ((bs->flags & 0x42) != 0) *(_WORD *)bs_vname = 24436; els...
static void bs_store_result(boot *bs, gretl_matrix **rp) { if (bs_data != NULL) { gretl_matrix_free(bs_data); bs_data = NULL; } bs_data = *rp; *rp = NULL; *bs_vname = '\0'; if (bs->flags & BOOT_F_FORM) { strcpy(bs_vname, "F_test"); } else { if (bs->flags & (BOOT_PVAL | BOOT_STUDENTIZE))...
bs_store_result
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int bscan_escape(char *s) { int i; int n; n = strlen(s); for (i = 0; i < n; ++i) { if (s[i] == 92 && (!i || s[i - 1] != 92)) { if (s[i + 1] == 110) { s[i] = 10; shift_string_left(&s[++i], 1u); } else if (s[i + 1] == 116) { s[i] = 9; shift_string_left(&s[++i], 1u)...
static int bscan_escape(char *s) { int i, n = strlen(s); for (i = 0; i < n; i++) { if (s[i] == '\\' && (i == 0 || s[i - 1] != '\\')) { if (s[i + 1] == 'n') { s[i] = '\n'; shift_string_left(s + i + 1, 1); i++; } else if (s[i + 1] == 't') { s[i] = '\t'; shift_s...
bscan_escape
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double btdtr(double a, double b, double x) { return incbet(a, b, x); }
double btdtr(double a, double b, double x) { return (incbet(a, b, x)); }
btdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_find_node(BTree *tree, gdouble key) { int cmp; BTreeNode *node; node = tree->root; if (!tree->root) return 0; while (1) { while (1) { cmp = key_compare(key, node->key); if (!cmp) return node; if (cmp >= 0) break; if (!node->left_child) ...
static BTreeNode *btree_find_node(BTree *tree, gdouble key) { BTreeNode *node = tree->root; gint cmp; if (!node) { return NULL; } while (1) { cmp = key_compare(key, node->key); if (cmp == 0) { return node; } else if (cmp < 0) { if (!node->left_child) { return NULL; ...
btree_find_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
BTreeNode *btree_first_node(BTree *tree) { BTreeNode *tmp; if (!tree->root) return 0; for (tmp = tree->root; tmp->left_child; tmp = tmp->left) ; return tmp; }
static inline BTreeNode *btree_first_node(BTree *tree) { BTreeNode *tmp; if (!tree->root) { return NULL; } tmp = tree->root; while (tmp->left_child) { tmp = tmp->left; } return tmp; }
btree_first_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0