Float the bins with the given lower bound

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2878 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
chartl 2010-02-23 20:48:53 +00:00
parent 119d449b46
commit 1f673e9fab
1 changed files with 2 additions and 2 deletions

View File

@ -243,13 +243,13 @@ class DepthOfCoverageStats {
}
int[] binLeftEndpoints = new int[bins+1];
binLeftEndpoints[0] = 0; // depth < start
binLeftEndpoints[0] = lower;
int length = upper - lower;
double scale = Math.log10((double) length)/bins;
for ( int b = 1; b < bins ; b++ ) {
int leftEnd = (int) Math.floor(Math.pow(10.0,(b-1.0)*scale));
int leftEnd = lower + (int) Math.floor(Math.pow(10.0,(b-1.0)*scale));
while ( leftEnd <= binLeftEndpoints[b-1] ) {
leftEnd++;