From a4e2ee22fd57665d2388d5debc17db896a4a389f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 3 Sep 2020 12:59:41 +0200 Subject: Changed constant _init to _ini to avoid conflict with _init() method. Reverted name cprique back to cpqueue. --- examples/ex_gaussian.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/ex_gaussian.c') diff --git a/examples/ex_gaussian.c b/examples/ex_gaussian.c index 75efec51..a4682a2b 100644 --- a/examples/ex_gaussian.c +++ b/examples/ex_gaussian.c @@ -29,20 +29,20 @@ int main() crand_normal_f64_t dist = crand_normal_f64_init(rng, Mean, StdDev); // Create histogram map - cmap_i mhist = cmap_init; + cmap_i mhist = cmap_ini; for (size_t i = 0; i < N; ++i) { int index = round( crand_normal_f64(&dist) ); cmap_i_insert(&mhist, index, 0)->value += 1; } // Transfer map to vec and sort it by map keys. - cvec_e vhist = cvec_init; + cvec_e vhist = cvec_ini; c_foreach (i, cmap_i, mhist) cvec_e_push_back(&vhist, *i.item); cvec_e_sort(&vhist); // Print the gaussian bar chart - cstr_t bar = cstr_init; + cstr_t bar = cstr_ini; c_foreach (i, cvec_e, vhist) { size_t n = (size_t) (i.item->value * Mag / N); if (n > 0) { -- cgit v1.2.3