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

Add empirical distribution #129

Merged
merged 11 commits into from
Oct 11, 2023
Merged

Add empirical distribution #129

merged 11 commits into from
Oct 11, 2023

Conversation

FriesischScott
Copy link
Owner

The distribution is fit on data by using kernel density estimation for the PDF. The CDF and quantile function are computed empirically and using spline interpolation.

The distribution is implemented as a subtype of ContinuousUnivariateDistribution and should work smoothely in the RandomVariable and everywhere else.

@FriesischScott
Copy link
Owner Author

@andreaperin Please confirm this actually works.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e40e378) 98.95% compared to head (be6e1b6) 98.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   98.95%   98.97%   +0.02%     
==========================================
  Files          23       24       +1     
  Lines         858      879      +21     
==========================================
+ Hits          849      870      +21     
  Misses          9        9              
Files Coverage Δ
src/UncertaintyQuantification.jl 100.00% <ø> (ø)
src/inputs/empiricaldistribution.jl 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andreaperin
Copy link
Collaborator

@andreaperin Please confirm this actually works.

I'll do

@FriesischScott FriesischScott marked this pull request as ready for review September 13, 2023 08:09
@FriesischScott FriesischScott changed the title Add basic empirical distribution Add empirical distribution Oct 11, 2023
@FriesischScott FriesischScott merged commit 194b3a8 into master Oct 11, 2023
9 checks passed
@FriesischScott FriesischScott deleted the empirical-distribution branch October 11, 2023 11:27
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.

2 participants