Quote:
Originally Posted by cdfd123
Dear Shamrock,
Yes ,I need the mean and variance for every line of the input and every one of those input lines has ten data values separated by the asterisk character
But first data value is just 1 2 4 22 211 22 12 22 22 11
and 1. and 2.is just a serial number and can be ignored for that
sorry for that incovenience
if that code not work what can be possible solution? Can u rewrite it?
Thanks
|
Now you have everything you need to write this code. It should be a relatively small program. Scan each line into 10 variables computing its mean and variance.