Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement Censored * Export Censored and censored * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Reorganize code * Move check to constructor * Make newline optional * Reformat * Improve show method * Add checks for finiteness * Implement expectations * Satisfy required params behavior * Overload truncated for DiscreteUniform * Don't re-censor * Handle case where censored to single point * Reformat * Add censored docs page * Update censored.md * Document censored * Add truncated DiscreteUniform tests * Add un-called truncated_uniform test suite * Skip check for DiscreteUniform * Add loglikelihood Useful to avoid redundant computation of bound probabilities when performing censored regression * Include bounds in support * Update src/truncated/discrete_uniform.jl Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Remove unnecessary checks for finiteness * Swap order of checks * Update censored.jl * Support using missing to specify unbounded * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Improve docstrings * Reformat * Rewrap signature * Use ismissing everywhere * Reformat * Fix maximum * Fix support check * Support fields that are equivalent This allows equality checking for distributions with fields for which `==` or `isapprox` is not defined but `===` is * Add basic censored tests * Apply suggestions from code review Co-authored-by: Moritz Schauer <moritzschauer@web.de> * Resolve ambiguity * Resolve ambiguity * Use equivalence check for missing everywhere * Fix ccdf and logccdf * Better construct mixture equivalent * Implement mixture model for continuous censored dists * Add uniform tests * Enhance discrete uniform tests * Add Poisson tests * Fix implementation of entropy * Test mean/std of censored Poisson * Add normal tests * Remove unused methods * Test bounds check * Add log-likelihood test * Add test for censorship to empty interval * Support censorship to empty intervals * Add comments about expectations * Add more checks for inferrability * Test explicit expectations for DiscreteUniform * Rewrite censored docstring * Indicate interval censoring * Update docs/src/index.md Co-authored-by: Moritz Schauer <moritzschauer@web.de> * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Don't use now-deleted function * Fix tes for new params definition * Make loglikelihood type-stable * Add comment about equivalence check * Unabbreviate name * Remove inlines * Add plaintext mimetype * Add more truncated DiscreteUniform tests * Add xexpx * Compute probabilities on log scale * Clarify variable names * Eliminate deprecation warnings * Fix inferrability error * Reformat * Add check_args keyword * Promote each xi * Fix checking of args * Use bounds also to set types * Use check_args macro * Check for ArgumentError * Use eps to detect empty truncation * Use more accurate variable name * Use oneunit * Improve type-stability everywhere * Exhaustively test for type-inferribility * Remove now-unneeded test * Revert "Improve type-stability everywhere" This reverts commit f024f45. * Add convenient types * Use convenient types * Add missing check for in support of uncensored * Avoid promoting inputs based on bounds * Avoid promoting inputs based on bounds * Separate expectations to own methods * Check in interval first * Don't promote input types * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Remove lingering reference to udnefined type * Docstring fixes * Consistently use d0 for uncensored * Use nothing instead of missing * Reorganize * Add keyword constructor * Document and promote keyword constructors * Use keyword arguments in show * Don't use isnothing in tests * Don't print nothing Fails on old Julia versions * Export Censored * Once sentence per line * Docstring improvements * Fix variable rendering * Add missing comma * Revert "Export Censored" This reverts commit ccef571. * Prepend with module so docs build * Document with module prepended * Use function ... end syntax * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * LeftCensored ⇌ RightCensored * Apply suggestions from code review Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * Introduce xexpy * Remove test for no-longer-supported case * Simplify implementations * Rearrange left before right * Increment version number * Use information theory notation for entropy * Use d0 notation * Add header * Test infinite bounds just in case * Apply suggestions from code review Co-authored-by: Moritz Schauer <moritzschauer@web.de> * Add and test partially truncated overloads for discrete uniform * Update src/censored.jl Co-authored-by: David Widmann <devmotion@users.noreply.github.com> Co-authored-by: David Widmann <devmotion@users.noreply.github.com> Co-authored-by: Moritz Schauer <moritzschauer@web.de>
- Loading branch information
6f74846
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.
@JuliaRegistrator register
6f74846
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.
Registration pull request created: JuliaRegistries/General/53582
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: