sample_pwc

Graph.sample_pwc(pwc, sample_times, *, name=None)

Samples a Pwc at the given times.

Parameters
  • pwc (Pwc) – The Pwc to sample.

  • sample_times (np.ndarray(1D, real)) – The times at which you want to sample the Pwc. Must be ordered, contain at least one element, and lie between 0 and the duration of the Pwc. For a sample time \(t\) the returned value lies in the half open interval \(t_{j-1} < t \leq t_j\), where \(t_j\) indicates the boundary of a segment.

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

Returns

The values of the Pwc at the given times.

Return type

Tensor

See also

sample_stf()

Sample an Stf at given times.