User Guide
mushi
Notebooks
API Documentation
Developer Documentation
transform SFS to folded SFS.
func – loss function name from loss_functions module
Examples
>>> from mushi import utils >>> import jax.numpy as np
>>> sfs = np.array([1000, 100, 10])
>>> utils.fold(sfs) DeviceArray([1010, 100], dtype=int64)
ndarray