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 sample method for maps #30

Open
esheldon opened this issue Jun 20, 2019 · 0 comments
Open

add sample method for maps #30

esheldon opened this issue Jun 20, 2019 · 0 comments

Comments

@esheldon
Copy link
Collaborator

e.g.

smap = HealSparsMap(...)
ra, dec = smap.sample(size=1_000_000)

This will allow different map types to generate randoms differently but in a transparent way to the users. E.g. weight maps would gen randoms proportional to the value in the map. Integer maps may want to generate them uniformly, or only when certain bits are not set, etc.

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