josiann.moves.discrete.SetStep
- class josiann.moves.discrete.SetStep(*, position_set, bounds=None, repr_attributes=(), **kwargs)[source]
Step within a fixed set of possible values for x. For each dimension, the position immediately before or after x will be chosen at random when stepping.
Instantiate a Move.
- Parameters:
position_set (
Sequence[Sequence[float]]) – sets of only possible values for x in each dimension.bounds (
Optional[ndarray[tuple[int,...],dtype[float64|int64]]] (default:None)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple[str,...] (default:())) – tuple of attribute names to include in the move’s representation.kwargs (Any)
Methods
Instantiate a Move.
Generate a new proposed vector x.
Set bounds for the move.
Methods
- SetStep.__init__(*, position_set, bounds=None, repr_attributes=(), **kwargs)[source]
Instantiate a Move.
- Parameters:
position_set (
Sequence[Sequence[float]]) – sets of only possible values for x in each dimension.bounds (
Optional[ndarray[tuple[int,...],dtype[float64|int64]]] (default:None)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple[str,...] (default:())) – tuple of attribute names to include in the move’s representation.kwargs (Any)