Create a complex optimizable piecewise-constant signal.
segment_count (int) – The number of segments of the signal.
duration (float) – The duration of the signal.
maximum (float) – The upper bound for the modulus of the signal values.
initial_values (np.ndarray or list[np.ndarray], optional) – Initial values for the signal. Defaults to None, meaning the optimizer
initializes these variables with random values. You can either provide a single array,
or a list of them. If a list of arrays are used, they must have the same length.
name (str, optional) – The name of the node.
The optimizable piecewise-constant signal.
- Return type
Note that this function sets limits to the modulus of the signal.
If you want to set (different) limits to the real and imaginary parts instead,
consider using graph.util.real_optimizable_signal to create signals for the
real and imaginary parts, which you can pass to graph.complex_value.