Samplers
- class discopygal.solvers.samplers.Sampler(scene=None)
Abstract class for sampling methods in the scene.
- Parameters:
scene (
Scene
) – a scene to sample in
- sample()
Return a sample in the space (might be invalid)
- Returns:
sampled point
- Return type:
- class discopygal.solvers.samplers.SamplerWithAngle(scene=None)
- class discopygal.solvers.samplers.Sampler_Uniform(scene=None)
Uniform sampler in the scene
- Parameters:
scene (
Scene
) – a scene to sample in
- sample()
Return a sample in the space (might be invalid)
- Returns:
sampled point
- Return type: