cuqi.samples.Samples.burnthin#
- Samples.burnthin(Nb, Nt=1)#
Remove burn-in and thin samples. The burnthinned samples are returned as a new Samples object.
- Parameters:
Nb (int) – Number of samples to remove as burn-in from the start of the chain.
Nt (int) – Thin samples by selecting every Nt sample in the chain (after burn-in)
Example
# Remove 100 samples burn in and select every 2nd sample after burn-in # Store as new samples object S_burnthin = S.burnthin(100,2)
# Same thing as above, but replace existing samples object # (the burn-in and thinned samples are lost) S = S.burnthin(100,2)