partial reverse of previous changes

This commit is contained in:
darksnake 2016-11-16 21:26:09 +03:00
parent 48170cd353
commit cf6c8c0ad7

View File

@ -112,10 +112,10 @@ public class TritiumUtils {
double res;
if (deadTime > 0) {
double total = p.getEventsCount();
// double time = p.getLength();
// res = wind / (1 - total * deadTime / time);
double timeRatio = deadTime / p.getLength();
res = wind / total * (1d - Math.sqrt(1d - 4d * total * timeRatio)) / 2d / timeRatio;
double time = p.getLength();
res = wind / (1 - total * deadTime / time);
// double timeRatio = deadTime / p.getLength();
// res = wind / total * (1d - Math.sqrt(1d - 4d * total * timeRatio)) / 2d / timeRatio;
} else {
res = wind;
}