meld.system.scalers.LinearRamp
- class meld.system.scalers.LinearRamp(start_time, end_time, start_weight, end_weight)[source]
Bases:
TimeRamp
TimeRamp that interpolates linearly
- __init__(start_time, end_time, start_weight, end_weight)[source]
Initialize a LinearTimeRamp
- 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_time
Methods
__init__
(start_time, end_time, start_weight, ...)Initialize a LinearTimeRamp