message_ix_models.model.transport.operator.uniform_in_dim
- message_ix_models.model.transport.operator.uniform_in_dim(value: AnyQuantity, dim: str = 'y') AnyQuantity [source]
Construct a uniform distribution from value along its \(y\)-dimension.
value must have a dimension dim with length 1 and a single value, \(k\). The sole dim-coordinate is taken as \(d_{max}\): the upper end of a uniform distribution of which the mean is \(d_{max} - k\).
- Returns:
with dimension dim, and dim coordinates including all integer values up to and including \(d_{max}\). Values are the piecewise integral of the uniform distribution in the interval ending at the respective coordinate.
- Return type: