next up previous contents
Next: Retrieving Statistical Information Up: Collecting Statistics From Simulations Previous: Declaring a Statistical Collection   Contents

Adding Values

To add random samples of a variable to the collection object, use the

add_value
function. Using the above declarations of
stats_var1
and
stats_var2
,

stats_var1.add_value(30.3);
stats_var1.add_value(13.32);

stats_var2.add_value(3.9); 
stats_var2.add_value(5);
stats_var2.add_value(7.2);



Hydroponics 2002-06-08