Fixed to state that drawing from density works.
Some debugging elements not removed.
This commit is contained in:
@@ -102,7 +102,7 @@ double Particle::timeAlive() const {
|
||||
}
|
||||
|
||||
void Particle::increaseTimeInBin(double time_s) {
|
||||
time_in_bin_s_ += time_s*weight_;
|
||||
time_in_bin_s_ += time_s;
|
||||
}
|
||||
|
||||
void Particle::resetTimeInBin() {
|
||||
@@ -110,7 +110,7 @@ void Particle::resetTimeInBin() {
|
||||
}
|
||||
|
||||
double Particle::timeInBin() const {
|
||||
return time_in_bin_s_;
|
||||
return time_in_bin_s_*weight_;
|
||||
}
|
||||
|
||||
long int Particle::ID() const {
|
||||
|
||||
Reference in New Issue
Block a user