endstate_correction.smc.Resampler
- class endstate_correction.smc.Resampler[source]
Bases:
object
Methods
Stratified resampling of the walkers based on the weights Implementation is taken and slightly modified from @msuruzhon's openmmslicer package https://github.com/openmmslicer/openmmslicer/blob/main/openmmslicer/resampling_methods.py
- static stratified_resampling(samples: List, weights: List[float]) List [source]
Stratified resampling of the walkers based on the weights Implementation is taken and slightly modified from @msuruzhon’s openmmslicer package https://github.com/openmmslicer/openmmslicer/blob/main/openmmslicer/resampling_methods.py
- Returns:
list: resampled walkers