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:
parent
119d449b46
commit
1f673e9fab
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue