Actually increment count when adding a value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@710 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Histogram.java,v 1.2 2002/04/22 17:33:09 shaper Exp $
|
// $Id: Histogram.java,v 1.3 2002/04/22 21:28:55 shaper Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -53,6 +53,7 @@ public class Histogram
|
|||||||
} else {
|
} else {
|
||||||
_buckets[(value-_minValue)/_bucketWidth]++;
|
_buckets[(value-_minValue)/_bucketWidth]++;
|
||||||
}
|
}
|
||||||
|
_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user