meld.system.scalers.NonLinearRamp
- class meld.system.scalers.NonLinearRamp(start_time, end_time, start_weight, end_weight, factor)[source]
Bases:
TimeRamp
TimeRamp that interpolates non-linearly
- __init__(start_time, end_time, start_weight, end_weight, factor)[source]
Initialize a NonLinearTimeRamp
- Parameters
start_time (
float
) – time to start ramping upend_time (
float
) – time to finish ramping upstart_weight (
float
) – weight when time <= start_timeend_weight (
float
) – weight when time >= end_timefactor (
float
) – controls the shape of the non-linear ramp, must be >= 1
Methods
__init__
(start_time, end_time, start_weight, ...)Initialize a NonLinearTimeRamp