popsynth.selection_probability.selection_probability module
- class popsynth.selection_probability.selection_probability.SelectionParameter(default: Optional[float] = None, vmin: Optional[float] = None, vmax: Optional[float] = None, free: bool = True, is_normalization: bool = False)[source]
Bases:
Parameter
- class popsynth.selection_probability.selection_probability.SelectionProbability(name: str = 'name', use_obs_value: bool = False, use_distance: bool = False, use_luminosity: bool = False, use_flux: bool = False)[source]
Bases:
object
- __init__(name: str = 'name', use_obs_value: bool = False, use_distance: bool = False, use_luminosity: bool = False, use_flux: bool = False) None [source]
Base class for selections on a population.
- Parameters
name (str) – Name of the selection
use_obs_value (bool) – If True, make selection on observed_value. False by default.
use_distance (bool) – If True make selection on distance. False by default.
use_luminosity (bool) – If True make selection on luminosity. False by default.
use_flux (bool) – If True make selection on flux. False by default.
- property parameters: Dict[str, float]
- property selection: ndarray
- property n_selected: int
- property n_non_selected: int
- property n_objects: int
- property selection_index: ndarray
- property non_selection_index: ndarray
- property name: str