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

Differentiate better between types of populations (be explicit when constructing KDE-based uncertain values) #41

Open
kahaaga opened this issue Jan 25, 2019 · 0 comments

Comments

@kahaaga
Copy link
Owner

kahaaga commented Jan 25, 2019

Currently, UncertainValue(v) where v is some vector will trigger kernel density estimation of the distribution of v.

It would be nice to be able to differentiate between a simple population and a weighted population. Assume population is a vector and wts is a vector of weights associated with the elements of population. We'd then have the syntax UncertainValue(population) construct a EquiprobablePopulation(or something like that) and UncertainValue(population, wts) construct a WeightedPopulation (or something like that).

This way, a user can seamlessly use the resampling methods from Bootstrap.jl and Jackknife to sample equiprobably populations, while the fallback resampling method for the other uncertain value types is BasicSampling (see common interface suggestion in #24)

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

No branches or pull requests

1 participant