Small bugfix for ion energy from ionization and
random index
This commit is contained in:
@@ -40,7 +40,7 @@ void RandomIndex::reshuffle(std::mt19937* engine) {
|
||||
}
|
||||
|
||||
bool RandomIndex::visited_all() {
|
||||
return current_index_in_vector_ == total_bin_number_ - 1;
|
||||
return current_index_in_vector_ == total_bin_number_;
|
||||
}
|
||||
|
||||
// return the next index in the shuffled index vector. Returns the last
|
||||
|
||||
Reference in New Issue
Block a user