Make generate_posterior_sample() an attribute of WienerFilterCurvature?
sugar.py requires its second argument to be of type
WienerFilterCurvature and is quite dependent on
WienerFilterCurvature's internal design (e.g. that it has members called S, R and N and what their exact types are).
I think it might be cleaner to move ths method into the class.