Unified Sampling Architecture¶
Sample a Potential.
Introduction¶
What is PotentialSampler
?
Registering a Sampler¶
Registering a sampler is easy. All you need to do is subclass
PotentialSampler
and provide information about the sampling object’s
package.
For example
Let’s do this for galpy
class GalpyPotentialSampler(PotentialSampler):
A Worked Example¶
First we do the standard set of imports. In this example we will be sampling from
>>> from discO import PotentialSampler
When we sample from this potential
Reference/API¶
discO.core.sample Module¶
Classes¶
|
Sample a Potential. |
|
Mesh-Grid Position Distribution. |