What I would like to do is collect the mean and standard deviation at each Salinity-Temperature combination. Right now, I'm only getting the mean and standard deviation for either the last of these temperatures or all of them averaged.
How can I do this?
Right now what I do is as follows:
experiment 'Run 1 Simulations' type: batch repeat: 1 keep_seed: true until: (cycle>6624)
parameter "ExperimentalTemp" var:Monthly_waterTemp_Avg min:28 max: 31 step: 0.5 unit: "centimeter";
float mean_N_Batch;
float sd_N_Batch;
reflex means_sds_calculations
{
int cpt <- 0;
loop t from: 0 to: (cycle=6624)
{
mean_N_Batch <- mean (simulations collect each.modeled_growth[t]);
sd_N_Batch <- standard_deviation(simulations collect each.modeld_growth[t];
save mean_N_Batch to: "../results/mean_N_Batch"+cpt+Monthly_waterTemp_Avg+".csv" type: "csv" rewrite: false;
save sd_N_Batch to:
"../results/sd_N_Batch"+cpt+Monthly_waterTemp_Avg + ".csv" type: "csv" rewrite: false;
cpt <- cpt+1;
}
}
I would like to make a correction to what I had earlier - the standard deviation that is being produced is the same value as the mean. So, any ideas on why I am not getting standard deviations on a list of type float?
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/O6L3S6-cAwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/O6L3S6-cAwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.