/* Library for summary statistic * Usage: * summary_statistic (filename, number_of_step, number_of_molecules, * type_of_aglomerate, summary_statistic) */ #include #include int summary_statistic (char *filename, int step, int num_mol, const int *type_agl, const int *stat_all) /* filename - name of output file * step - number of steps * num_mol - number of molecules * type_agl - massive of numbers of aglomerate types * stat_all - massive of summary statistics */ { float conc, p, pn, type[2], x, y; int i, index; FILE *f_out; /* conc - concentrate of aglomerates * p - probability of aglomerates * pn - weight probability of aglomerates * f_out - output file */ index = 0; for (i=0; i