pymloc.model.variables.time_function

Classes

InputVariables(dimension[, time_domain])

OutputVariables(dimension[, time_domain])

StateVariables(dimension[, time_domain])

Time(t_0, t_f[, time_grid])

The time variable.

TimeVariables(dimension, time_domain)

Subclass for variables that depend on time.

class pymloc.model.variables.time_function.InputVariables(dimension, time_domain=[0.0, 1.0])

Bases: pymloc.model.variables.time_function.TimeVariables

class pymloc.model.variables.time_function.OutputVariables(dimension, time_domain=[0.0, 1.0])

Bases: pymloc.model.variables.time_function.TimeVariables

class pymloc.model.variables.time_function.StateVariables(dimension, time_domain=[0.0, 1.0])

Bases: pymloc.model.variables.time_function.TimeVariables

class pymloc.model.variables.time_function.Time(t_0, t_f, time_grid=None)

Bases: pymloc.model.variables.time_function.TimeVariables

The time variable.

Parameters
  • t_0 (float) –

  • t_f (float) –

  • time_grid (Optional[numpy.ndarray]) –

add_to_grid(tp)

Adds a timepoint tp to the current grid.

Parameters

tp (float) –

at_bound(tau)

Tests whether tau is at the upper or lower bound of time_grid

Parameters

tau (float) –

Return type

bool

at_lower_bound(tau)

Tests whether tau is at the lower bound of time_grid

Parameters

tau (float) –

Return type

bool

at_upper_bound(tau)

Tests whether tau is at the upper bound of time_grid

Parameters

tau (float) –

Return type

bool

get_random_values()
Return type

float

property grid
class pymloc.model.variables.time_function.TimeVariables(dimension, time_domain)

Bases: pymloc.model.variables.variables.Variables, abc.ABC

Subclass for variables that depend on time.

Parameters
  • dimension (int) –

  • time_domain (numpy.ndarray) –

property current_time
property current_values
property shape
property time_domain