Skip to content

Commit

Permalink
Change "/ 2" to "* 0.5".
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Jan 31, 2018
1 parent 58fc8a0 commit 7947193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/proteomics/Search/CalEValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public class CalEValue {
}

private int generateRandomRandomScores(int gap_num, float tolerance, float toleranceStep, TreeMap<Integer, ChainResultEntry> binChainMap) {
int maxBinIdx = buildIndexObj.massToBin((result_entry.spectrum_mass - linker_mass) / 2);
int maxBinIdx = buildIndexObj.massToBin((result_entry.spectrum_mass - linker_mass) * 0.5f);
for (int binIdx1 : binChainMap.keySet()) {
if (binIdx1 < maxBinIdx) {
int leftBinIdx1 = buildIndexObj.massToBin(result_entry.spectrum_mass - linker_mass - tolerance - toleranceStep) - maxBinIdx;
Expand Down

0 comments on commit 7947193

Please sign in to comment.