popsynth.distributions.spherical_distribution module¶
-
class
popsynth.distributions.spherical_distribution.ConstantSphericalDistribution(seed: int = 1234, name: str = 'cons_sphere', form: str = None)[source]¶ Bases:
popsynth.distributions.spherical_distribution.SphericalDistribution-
Lambda¶
-
__init__(seed: int = 1234, name: str = 'cons_sphere', form: str = None)[source]¶ A spherical distribution with constant density.
Parameters: - seed (int) – Random seed
- name (str) – Name of the distribution
- form (str) – Mathematical description of distribution
- Lambda (
DistributionParameter) – Density per unit volume
-
-
class
popsynth.distributions.spherical_distribution.SphericalDistribution(seed: int = 1234, name: str = 'sphere', form: str = None)[source]¶ Bases:
popsynth.distribution.SpatialDistribution-
__init__(seed: int = 1234, name: str = 'sphere', form: str = None)[source]¶ A generic spherical distribution. Can be inherited to form more complex spherical distributions
Parameters: - seed (int) – Random seed
- name (str) – Name of the distribution
- form (str) – Mathematical description of distribution
-
-
class
popsynth.distributions.spherical_distribution.ZPowerSphericalDistribution(seed: int = 1234, name: str = 'zpow_sphere')[source]¶ Bases:
popsynth.distributions.spherical_distribution.ConstantSphericalDistribution-
__init__(seed: int = 1234, name: str = 'zpow_sphere')[source]¶ A spherical distribution with a power law density profile.
Lambda(1+r)^``delta``Parameters: - seed (int) – Random seed
- name (str) – Name of the distribution
- form (str) – Mathematical description of distribution
- delta (
DistributionParameter) – Index of power law distribution
-
dNdV(distance)[source]¶ The differential number of objects per volume element
Parameters: distance – Returns:
-
delta¶
-