2021-07-14 20:23:00 +02:00
|
|
|
function ret = computeCollisionProbability(this, ovenObj, tau_2D)
|
2021-07-11 14:39:26 +02:00
|
|
|
collision = rand(1);
|
2021-07-14 20:23:00 +02:00
|
|
|
CollisionProbability = 1 - exp(-tau_2D/ovenObj.CollisionTime);
|
2021-07-11 14:39:26 +02:00
|
|
|
if this.BackgroundCollision && collision <= CollisionProbability
|
|
|
|
ret = true;
|
|
|
|
else
|
|
|
|
ret = false;
|
|
|
|
end
|
|
|
|
end
|