gluonts.torch.distributions.affine_transformed module#
- class gluonts.torch.distributions.affine_transformed.AffineTransformed(base_distribution: torch.distributions.distribution.Distribution, loc=None, scale=None)[source]#
Bases:
torch.distributions.transformed_distribution.TransformedDistribution
Represents the distribution of an affinely transformed random variable.
This is the distribution of
Y = scale * X + loc
, whereX
is a random variable distributed according tobase_distribution
.- Parameters
base_distribution – Original distribution
loc – Translation parameter of the affine transformation.
scale – Scaling parameter of the affine transformation.
- property mean#
Returns the mean of the distribution.
- property stddev#
Returns the standard deviation of the distribution.
- property variance#
Returns the variance of the distribution.