Samplers
- class discopygal.solvers_infra.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_infra.samplers.SamplerWithAngle(scene=None)
Uniform sampler of random point and angle (for rotation)
- class discopygal.solvers_infra.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: