spaemis.scaling.constant
Constant scaler
Apply a constant scale factor to the base inventory
ConstantScaler
- class ConstantScaler(scaling_factor)[source]
Bases:
BaseScalerApply some constant scale factor to an inventory
- classmethod create_from_config(method)[source]
Create a new scaler from configuration
- Parameters:
method (
typing.Union[spaemis.config.ExcludeScaleMethod,spaemis.config.ProxyMethod,spaemis.config.RelativeChangeMethod,spaemis.config.ConstantScaleMethod,spaemis.config.TimeseriesMethod,spaemis.config.PointSourceMethod]) – Configuration to create the scaler- Returns:
spaemis.scaling.constant.ConstantScaler– New scaler instance configured according to the configuration