pub struct ProbeResult { /* private fields */ }Expand description
The recorded time series of one csx ProbeBox, restricted to its
StartTime/StopTime window (a stop time ≤ 0 means “no limit”) and
multiplied by its weight.
In a Bloch run (Simulation, Bloch mode) the
probe value is complex: values is the real part (the
real engine), imag the imaginary part, and the DFTs
(dft, dft_vector,
spectrum) return the spectrum of the complex series,
X(f) = DFT[x_re](f) + j·DFT[x_im](f).
Implementations§
Source§impl ProbeResult
impl ProbeResult
Sourcepub fn id(&self) -> u32
pub fn id(&self) -> u32
csx property id (csx::Property::id, equal to
csx::PropertyId::get).
Sourcepub fn frequencies(&self) -> &[f64]
pub fn frequencies(&self) -> &[f64]
The property’s frequencies for frequency-domain output [Hz]
(FD_Samples; may be empty).
Sourcepub fn values(&self) -> &ProbeValues
pub fn values(&self) -> &ProbeValues
The recorded values.
Sourcepub fn imag(&self) -> Option<&ProbeValues>
pub fn imag(&self) -> Option<&ProbeValues>
The imaginary part of the recorded values in a Bloch run (None
otherwise); same kind and length as values.
Sourcepub fn dft(&self, freqs: &[f64]) -> Result<Vec<Complex64>>
pub fn dft(&self, freqs: &[f64]) -> Result<Vec<Complex64>>
DFT X(f) = Σ x(t_n)·e^{−j2πf·t_n}·dt of a voltage / current probe at
freqs [Hz], with the samples’ own absolute times (so the half-step
offset of currents is exact). The result equals that of a running
DFT (RunningDft) over the same samples.
§Errors
Error::Invalid for a field probe (use
dft_vector) or a probe without samples.
Sourcepub fn dft_vector(&self, freqs: &[f64]) -> Result<Vec<[Complex64; 3]>>
pub fn dft_vector(&self, freqs: &[f64]) -> Result<Vec<[Complex64; 3]>>
DFT of each component of a field probe at freqs [Hz] (see
dft).
§Errors
Error::Invalid for a voltage / current probe or a probe without
samples.