Skip to content

Commit 5af322a

Browse files
committed
Batch error for JBR corrrected
1 parent 8a69473 commit 5af322a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soundcalc/regimes/johnson_bound.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_batching_error(self, params: FRIParameters) -> float:
7676

7777
m = self._get_m()
7878
rho = params.rho
79-
error = ((m + 0.5) ** 5) / (3 * (rho ** 1.5)) * (params.D) / params.F
79+
error = ((2*(m + 0.5) ** 5 + 3*(m + 0.5)*rho)) / (3 * rho * math.sqrt(rho)) * (params.D) / params.F
8080
if params.power_batching:
8181
error *= params.num_functions
8282
return error

0 commit comments

Comments
 (0)