ProxNest.sampling.resampling.reorder_samples(samples, likelihood_values)

This program is to find the sample with the smallest likelihood and move it to the end of the list

Parameters
  • samples (np.ndarray) – given sample list

  • likeliVal (np.ndarray) – corresponding likelihood

Returns

Reordered version of (samples, likelihood_values)

Return type

tuple

Notes

MATLAB version: Xiaohao Cai (30/01/2019)

Python version: Matthew Price (10/05/2022)