apply_lognormal_transform

randomfield.cosmotools.apply_lognormal_transform(delta, growth, sigma=None)[source] [edit on github]

Transform delta values drawn from a normal distribution with mean zero and standard deviation sigma to have a log-normal distribution with mean one and standard deviation growth * sigma. Transforms are applied in place, overwriting the input delta field. If sigma is not specified, np.std(delta) will be used.