public double average() {
        // no data - guess an average
        if (nround == 0)
            return nfruits * sum(pref)/nkindfruits;
        double sum = 0;
        for (int i = 0; i < nround; i++)
            sum += score(i);
        return sum/nround;
    }