Skip to content

Commit

Permalink
multiplicative BB is now (1+exp(polynomial))
Browse files Browse the repository at this point in the history
  • Loading branch information
julienguy committed Nov 14, 2024
1 parent da3ccc0 commit 026383c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vega/broadband_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def compute(self, params, pos_type):
raise ValueError(f'Broadband function {bb_term["func"]} not supported')

if bb_poly_total is None:
bb_poly_total = 1 + bb_poly if 'mul' in pos_type else bb_poly
bb_poly_total = 1 + np.exp(bb_poly) if 'mul' in pos_type else bb_poly
elif 'mul' in pos_type:
bb_poly_total *= 1 + bb_poly
bb_poly_total *= (1 + np.exp(bb_poly))
else:
bb_poly_total += bb_poly

Expand Down

0 comments on commit 026383c

Please sign in to comment.