function_based_kinetic_parameter#
Defines a kinetic parameter, that is constant over time.
- class FunctionBasedKineticParameter(function: Callable[[float], T_co])#
Bases:
Generic[T_co]A kinetic parameter which values are based on a function.
- function#
A function mapping the timestamp to the value of the kinetic parameter.
Initializes a function based kinetic parameter.
- Parameters:
function – A function mapping the timestamp to the value of the kinetic parameter.
- get_at_timestamp(run: int, t: float) T_co#
Returns the kinetic parameters at the given timestamp.
- Parameters:
t – The timestamp, at which the kinetic parameters are needed.
run – The run (time series) of the current simulation.
- Returns:
The kinetic parameters at the given timestamp.
- prepare_samples(n: int) None#
Prepares a sample of the kinetic parameter.
This method is called before a new simulation starts.
- Parameters:
n – The number of samples to prepare.