The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #8 (permalink)  
Old 01-09-2008
cdfd123 cdfd123 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 112
Post

Quote:
Originally Posted by shamrock View Post
So let me see if I understand your post. You need the mean & variance for every line of input and every one of those input lines has ten data values separated by the asterisk character and the first data value is a floating point number like 1.1 2.2 yada yada...correct me if I am wrong.
The code you have posted does not seem to be able to compute the mean and variance of every line of input.
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