-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add survival and log-survival function to
distrax.Distribution
base…
… class. Note that by default we use a numerically not necessarily stable definition of the survival function in terms of the CDF: sf(x) = 1-cdf(x) and similarly for the log survival function. More stable definitions should be implemented in future CLs for distributions, for which they exist. Added a test to `distribution.Uniform` where we will use the default behaviour. PiperOrigin-RevId: 443160366
- Loading branch information
DistraxDev
authored and
DistraxDev
committed
Apr 22, 2022
1 parent
cc452c5
commit 10bd0db
Showing
3 changed files
with
51 additions
and
0 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
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