pub struct Solution {
pub plotname: String,
pub variables: Vec<(String, VarType)>,
pub data: Data,
pub scale: Option<usize>,
}Expand description
One analysis plot: what a rawfile plot holds, with
crate::VarType and crate::Data re-exported at the crate
root so callers need not depend on dune_raw.
Fields§
§plotname: StringThe Plotname: (e.g. Operating Point).
variables: Vec<(String, VarType)>Variable names and kinds (crate::VarType), in rawfile
order.
data: DataOne column per variable, all the same length; complex for
.ac, real for everything else (crate::Data).
scale: Option<usize>Index of the abscissa (time, frequency, v(v-sweep)) in
variables; None for the operating point.
Implementations§
Source§impl Solution
impl Solution
Sourcepub fn measure(&self, func: &MeasFunc) -> Result<Measurement, MeasureError>
pub fn measure(&self, func: &MeasFunc) -> Result<Measurement, MeasureError>
Evaluate one measurement on this plot (pure: the solution is
only read). func comes from a .measure card
(dune_netlist::ir::Measure::func) or from
dune_netlist::parse_measure_body.
Source§impl Solution
impl Solution
pub fn num_points(&self) -> usize
Sourcepub fn column(&self, name: &str) -> Option<&[f64]>
pub fn column(&self, name: &str) -> Option<&[f64]>
Real column by variable name (case-insensitive, like the 3f5
front end); None when missing or complex.
Sourcepub fn column_complex(&self, name: &str) -> Option<&[Complex64]>
pub fn column_complex(&self, name: &str) -> Option<&[Complex64]>
Complex column by variable name.