Addition of "location" type parameter in the Gamma distribution
ikrommyd opened this issue · comments
Iason Krommydas commented
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
Pavel Sountsov commented
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)])
Iason Krommydas commented
Thanks a lot for the suggestion. Great concept!