popsynth.aux_samplers.viewing_angle_sampler module

class popsynth.aux_samplers.viewing_angle_sampler.ViewingAngleSampler[source]

Bases: NonObservedAuxSampler

max_angle
__init__()[source]

A viewing angle sampler that samples from 0 to max_angle. Unlike other samplers, it assumes that this is NOT an observed property

Parameters

max_angle (AuxiliaryParameter) – The maximum angle to which to sample in degrees

true_sampler(size: int) None[source]

Sample the viewing angle by inverse CDF

Parameters

size (int) – Number of samples