Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 4 of 4) sorted by relevance

/zscilib-3.4.0/src/
Dstatistics.c118 zsl_real_t sum = 0.0; in zsl_sta_time_weighted_mean() local
131 sum += (ts.data[j] - ts.data[j - 1]) * in zsl_sta_time_weighted_mean()
135 *m = sum / (ts.data[(t->sz - 1)] - ts.data[0]); in zsl_sta_time_weighted_mean()
200 zsl_real_t sum = 0.0; in zsl_sta_weighted_median() local
202 sum += w->data[i]; in zsl_sta_weighted_median()
209 if (ZSL_ABS(sum - 1.0) > 1E-6) { in zsl_sta_weighted_median()
331 zsl_real_t sum = 0.0; in zsl_sta_mean_abs_dev() local
333 sum += ZSL_ABS(vdm.data[i]); in zsl_sta_mean_abs_dev()
336 *m = sum / v->sz; in zsl_sta_mean_abs_dev()
Dprobability.c279 zsl_real_t sum = -1.0; in zsl_prob_entropy() local
284 sum += v->data[i]; in zsl_prob_entropy()
286 if (ZSL_ABS(sum) > 1E-6) { in zsl_prob_entropy()
Dmatrices.c1164 zsl_real_t sum, x, y; in zsl_mtx_cholesky() local
1167 sum = 0.0; in zsl_mtx_cholesky()
1170 sum += x * x; in zsl_mtx_cholesky()
1173 zsl_mtx_set(l, j, j, ZSL_SQRT(x - sum)); in zsl_mtx_cholesky()
1176 sum = 0.0; in zsl_mtx_cholesky()
1180 sum += y * x; in zsl_mtx_cholesky()
1184 zsl_mtx_set(l, i, j, (y - sum) / x); in zsl_mtx_cholesky()
1196 zsl_real_t sum; in zsl_mtx_balance() local
1236 sum = col + row; in zsl_mtx_balance()
1250 if ((col + row) / col2 < 0.95 * sum) { in zsl_mtx_balance()
/zscilib-3.4.0/tests/src/
Dvector_tests.c535 zsl_real_t sum; in ZTEST() local
542 sum = zsl_vec_sum_of_sqrs(&v); in ZTEST()
545 zassert_true(val_is_equal(sum, 16.41, 1E-6), NULL); in ZTEST()