probability icon indicating copy to clipboard operation
probability copied to clipboard

Addition of "location" type parameter in the Gamma distribution

Open ikrommyd opened this issue 10 months ago • 2 comments

Adding a loc type parameter to the Gamma distribution like scipy has would be beneficial. It is relatively common in physcs for people to use the Gamma distribution and data shifts are always important in such things. @jonas-eschle

ikrommyd avatar Apr 05 '24 22:04 ikrommyd

You can use the TransformedDistribution to apply these transformations in the meantime (and were this to ever be added, this is how we'd implement it):

shifted_scaled_gamma = tfd.TransformedDistribution(tfd.Gamma(...), [tfb.Shift(loc), tfb.Scale(scale)])

SiegeLordEx avatar Apr 05 '24 22:04 SiegeLordEx

Thanks a lot for the suggestion. Great concept!

ikrommyd avatar Apr 05 '24 22:04 ikrommyd