Skip to content

Commit

Permalink
change a coiment
Browse files Browse the repository at this point in the history
  • Loading branch information
aronsho committed Jul 5, 2023
1 parent 2521bba commit 0880cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog_tools/analysis/estimate_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def shi_bolt_confidence(magnitudes: np.ndarray, b_value: float):
Returns:
sig_b: confidence limit of the b-value
"""
# standard deviation in Shi and Bolt is calculated with 1/(N*(N-1)),
# which is by a factor of sqrt(N) different to the std(x, ddof=1) estimator
# standard deviation in Shi and Bolt is calculated with 1/(N*(N-1)), which
# is by a factor of sqrt(N) different to the std(x, ddof=1) estimator
std_m = np.std(magnitudes, ddof=1) / np.sqrt(len(magnitudes))
sig_b = np.log(10) * b_value ** 2 * std_m

Expand Down

0 comments on commit 0880cba

Please sign in to comment.