-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redundancy wrt applyFilters() & applySamp() #44
Comments
In fact this is already starting to happen. In @EllieDyer 's fork, |
I think that |
This code:
Should give the same answer as:
Test this with a simple example. Then either remove |
I have updated |
I think |
applyFilters()
does two jobs: sample the posterior and apply the filters, including clipping.applySamp()
does just the first.Separating them is useful if you don't want to do any filters. It also makes the code much easier to debug. As a result there is some redundancy. This is not ideal because over time the two bits code might diverge, with unexpected consequences. A logical change would be to take the sampling part out of
applyFilters()
, so it reads in the output fromapplySamp()
.The text was updated successfully, but these errors were encountered: