partial reverse of previous changes
This commit is contained in:
parent
48170cd353
commit
cf6c8c0ad7
@ -112,10 +112,10 @@ public class TritiumUtils {
|
|||||||
double res;
|
double res;
|
||||||
if (deadTime > 0) {
|
if (deadTime > 0) {
|
||||||
double total = p.getEventsCount();
|
double total = p.getEventsCount();
|
||||||
// double time = p.getLength();
|
double time = p.getLength();
|
||||||
// res = wind / (1 - total * deadTime / time);
|
res = wind / (1 - total * deadTime / time);
|
||||||
double timeRatio = deadTime / p.getLength();
|
// double timeRatio = deadTime / p.getLength();
|
||||||
res = wind / total * (1d - Math.sqrt(1d - 4d * total * timeRatio)) / 2d / timeRatio;
|
// res = wind / total * (1d - Math.sqrt(1d - 4d * total * timeRatio)) / 2d / timeRatio;
|
||||||
} else {
|
} else {
|
||||||
res = wind;
|
res = wind;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user