Ejemplo n.º 1
0
        public override void Fill(double x)
        {
            //int bin = xAxis.getBin(x);
            int bin = Map(XAxis.CoordToIndex(x));

            entries[bin]++;
            heights[bin]++;
            errors[bin]++;
            nEntry++;
            sumWeight++;
            sumWeightSquared++;
            mean += x;
            rms  += x * x;
        }
Ejemplo n.º 2
0
        public override void Fill(double x, double weight)
        {
            //int bin = xAxis.getBin(x);
            int bin = Map(XAxis.CoordToIndex(x));

            entries[bin]++;
            heights[bin] += weight;
            errors[bin]  += weight * weight;
            nEntry++;
            sumWeight        += weight;
            sumWeightSquared += weight * weight;
            mean             += x * weight;
            rms += x * weight * weight;
        }