Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mode statistic and tests #16

Merged
merged 2 commits into from
Mar 2, 2020
Merged

Conversation

siddharthlal25
Copy link
Member

@siddharthlal25 siddharthlal25 commented Feb 29, 2020

Added mode for background estimation, as was mentioned in issue #12.
The empirical version of mode being mode = 3median - 2mean has not been used here, because it delivers well in symmetrical and slightly skewed distributions but gives wrong results in skewed scenarios.
Therefore the standard implementation of mode is used form StatsBase.jl

Copy link
Member

@mileslucas mileslucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small changes, plus you need to rebase off master.

Also, make sure to add Mode to the docs/src/background/estimators.md section.

Project.toml Show resolved Hide resolved
src/Background/stat_estimators.jl Show resolved Hide resolved
@mileslucas mileslucas merged commit 941cf14 into JuliaAstro:master Mar 2, 2020
@mileslucas mileslucas mentioned this pull request Mar 2, 2020
6 tasks
@siddharthlal25 siddharthlal25 deleted the mode branch March 3, 2020 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants