pytvx.IfThenElse

class pytvx.IfThenElse(condition: Union[bool, Tvb, PyTvb], true_value: Union[float, Tvf, PyTvf] = 0.0, false_value: Union[float, Tvf, PyTvf] = 0.0)[source]

Bases: pytvx.PyTvf

Methods

indent_repr

__call__(t: float) float[source]

Compute the floating point value of this object at a given time.

Parameters

t – The time at which to evaluate.

Returns

The value at time t.

Return type

float