Changed the exit condition and reflected change here.

This commit is contained in:
Karthik 2021-07-15 16:51:16 +02:00
parent 3dab7d35bf
commit dbfe5225fa

View File

@ -18,8 +18,7 @@ function [LoadingRate, StandardError, ConfidenceInterval] = calculateLoadingRate
end
for AtomIndex = 1:n
Position = squeeze(DynamicalQuantities(AtomIndex, TimeIndex, 1:3))';
Velocity = squeeze(DynamicalQuantities(AtomIndex, TimeIndex, 4:6))';
if this.exitCondition(ovenObj, Position, Velocity, CollisionEvents(AtomIndex))
if this.exitCondition(Position, CollisionEvents(AtomIndex))
NumberOfLoadedAtoms(TimeIndex) = NumberOfLoadedAtoms(TimeIndex) + 1;
end
end