Skip to content

Commit

Permalink
Correct 0 to 1 in results, since between 1 and 100.
Browse files Browse the repository at this point in the history
  • Loading branch information
olas committed Jun 30, 2010
1 parent cb39ed1 commit 4ad3a8c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -415,7 +415,8 @@ protected List<? extends ITestResult> doRunTest( ICDKMolecule cdkmol,
// }

// Scaling. We rescale the derivative to be between 1 and 100.
double scaledDeriv = (currentDeriv-smallestDeriv)/(largestDeriv-smallestDeriv)*100+1;
double scaledDeriv = (currentDeriv-smallestDeriv)/(largestDeriv-smallestDeriv)*100;
if (scaledDeriv==0) scaledDeriv=1;
match.putAtomResult( tmp-1, (int) scaledDeriv );

/*
Expand Down

0 comments on commit 4ad3a8c

Please sign in to comment.