-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add weights to Patlak linear regression #924
base: master
Are you sure you want to change the base?
Conversation
Weights can be turned on or off in par file, assume Poisson distribution - This PR assumes data is NOT decay corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great. Can you add something to release_5.0.htm
as new feature?
@KrisThielemans Sure. Want to add some sort of check for decay correction? I don't remember well, but isn't one of the input parameters if the data is decay corrected? |
interesting. Checking through Digging a bit deeper: Maybe you could also add that in? Should be a 5 min job? (hmmm...) By the way, there's some outdated comments in the utility here. Once we remove that, we should also remove this stuff. |
@KrisThielemans if I add to |
includes release notes for new "poisson" feature
@AnderBiguri I've updated the doc. Have a look if it makes sense please. Note that we have the capability with |
@KrisThielemans when the input is in "activity", is it decay corrected too? My gut says that it would make sense for it to be called activity only if its decay corrected, but if it can be non-decay corrected, then its just a multiplication by a constant, right? If that is the case, even if it the weight was not taking the image values into account, it would be the same. But indeed, the weights are reading the image values, so they are |
you're right that "activity" should be decay correct. We can have 3 cases:
We currently say that we don't support decay corrected data, so I guess the last one is out. Only "counts" follow Poisson stats. Regarding factors, global factors don't matter, as long as they're constant for every frame. However, that wouldn't be the case for any of these. I think I wrote the eqs down somewhere but didn't get into the division by model-matrix. As this in itself has frame_duration and decay_factor contributions, this could be somewhat tricky, but then again for the weight calculation, it just seems a constant. I have no time to check this better now. sorry. again, if it gets hairy, just throw an error and support only what you know is correct |
Weights can be turned on or off in par file, assume Poisson distribution