MeshGridPotentialSampler¶
- class discO.core.sample.MeshGridPotentialSampler(potential: Any, meshgrid: BaseRepresentation, *, total_mass: Quantity | None = None, representation_type: BaseRepresentation | str | None | ellipsis = None, key: module | str | None = None, **other)[source]¶
Bases:
PotentialSampler
Mesh-Grid Position Distribution.
- Parameters:
- pot
PotentialWrapper
- meshgridcoord-like
Should be “ij”, not “xy” indexed.
- pot
Methods Summary
__call__
(n[, rng])Sample.
Methods Documentation