Skip to content

Commit

Permalink
Update fitting_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Apr 12, 2024
1 parent dff5791 commit e820f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desk/fitting/fitting_tools.py
Expand Up @@ -93,7 +93,7 @@ def least2_liklihood(_data: np.ndarray, _model: np.ndarray) -> float:
"""
# least squares fit
_stat = np.nansum(np.square(_data - _model) / _model)
prob = np.exp(-0.5 * np.float128(_stat))
prob = np.exp(-0.5 * np.longdouble(_stat))
return prob

def fit_data(data: np.ndarray, model: np.ndarray) -> float:
Expand Down

0 comments on commit e820f6a

Please sign in to comment.