double mean, sum = 0, sum2 = 0, var;
What does the above line mean?
Type: Posts; User: hemla
double mean, sum = 0, sum2 = 0, var;
What does the above line mean?
Yes, i've looked up into that and the code is supposed to calculate the mean and variance and print it out on two separate lines. The mean of N data items is calculated by adding up all the items and...
public class MeanVariance {
public static void main (String[] args) {
int len = args.length;
double[] data = new double[len];
double mean, sum = 0, sum2 = 0, var;
for (int i...