sample_stf

Graph.sample_stf(stf, sample_times, *, name=None)

Sample an Stf at the given times.

Parameters:
  • stf (Stf) – The Stf to sample.

  • sample_times (np.ndarray) – The times at which you want to sample the Stf. Must be ordered and contain at least one element.

  • name (str or None, optional) – The name of the node.

Returns:

The values of the Stf at the given times.

Return type:

Tensor

See also

Graph.constant_stf_operator

Create a constant Stf operator.

Graph.discretize_stf

Discretize an Stf into a Pwc.

Graph.identity_stf

Create an Stf representing the identity function.

Graph.sample_pwc

Sample a Pwc at given times.

Notes

For more information on Stf nodes see the Working with time-dependent functions in Boulder Opal topic.