Search:

Type: Posts; User: hemla

Search: Search took 0.07 seconds.

  1. [SOLVED] Re: Can anyone explain this code to me? Calculation of mean and variance.

    double mean, sum = 0, sum2 = 0, var;


    What does the above line mean?
  2. [SOLVED] Re: Can anyone explain this code to me? Calculation of mean and variance.

    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...
  3. [SOLVED] Can anyone explain this code to me? Calculation of mean and variance.

    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...
Results 1 to 3 of 3