-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ft: collapsed the MLL test full and light versions into one. A full s…
…ampling from the entire stochastic set is possible now with the full_calculation flag. Removed mag_half_bin, which is now calculated directly from the region magnitude bins.
- Loading branch information
Showing
1 changed file
with
31 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c8a2964
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formulas in the resampled_magnitude_test are incorrect. They should be
D_j = Σ_k [log(Λ_U(k) *(N_o/N_U) + 1) - log(Λ_j(k) /(N_o/ N_j) + 1)]^2
and
D_o = Σ_k [log(Λ_U(k) *(N_o/N_U) + 1) - log(Ω(k) + 1)]^2
where N_o is the number of observations N_o = Σ_k Ω(k). Essentially is the log-ratio between rates for each magnitude magnitude bin, where the rates (both for the union and each synthetic catalogue) have been normalised to sum to the number of observations.
The MLL_magnitude_test function works correctly.