popsynth.distributions.flatland_distribution module

class popsynth.distributions.flatland_distribution.FlatlandDistribution(seed: int = 1234, name: str = 'flatland', form: Optional[str] = None)[source]

Bases: SpatialDistribution

Lambda
__init__(seed: int = 1234, name: str = 'flatland', form: Optional[str] = None)[source]

A flat spatial distribution with only length.

Parameters
  • seed (int) – Random seed

  • name (str) – Name of the distribution

  • form (str) – Mathematical description of distribution

  • Lambda (DistributionParameter) – Length

differential_volume(r)[source]

The differential volume

Parameters

distance – Distance

transform(L, r)[source]

The transform from luminosity to flux for the

Parameters
  • flux

  • distance

Returns

dNdV(distance)[source]

The differential number of objects per volume element

Parameters

distance

Returns