-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: specify bounds for Gaussian photometric redshifts (#115)
Adds `lower=` and `upper=` keyword parameters to the `gaussian_phz()` function to sample Gaussian photometric redshifts within the given limits. This currently uses a trivial rejection sampler from the full normal distribution, so it can easily become very inefficient if the bounds don't contain significant probability mass. Needs to be improved for serious use. Closes: #114 Changed: The `gaussian_phz()` function now accepts bounds using `lower=` and `upper=` keyword parameters.
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 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
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