pub trait Dataset {
// Required methods
fn inputs(&self) -> ArrayView2<'_, f64>;
fn target(&self) -> ArrayView1<'_, f64>;
fn name(&self) -> &str;
fn input_names(&self) -> &'static [&'static str];
fn target_name(&self) -> &'static str;
fn evaluate<E: Residual + Sync>(
&self,
eos: &E,
) -> (Array1<f64>, Array1<bool>);
}Expand description
Dataset that can be evaluated by an equation of state.
Required Methods§
Sourcefn inputs(&self) -> ArrayView2<'_, f64>
fn inputs(&self) -> ArrayView2<'_, f64>
Inputs for EoS evaluation, shape [n_points, k].
Sourcefn target(&self) -> ArrayView1<'_, f64>
fn target(&self) -> ArrayView1<'_, f64>
Target values, shape [n_points].
Sourcefn input_names(&self) -> &'static [&'static str]
fn input_names(&self) -> &'static [&'static str]
Names of independent input columns.
Sourcefn target_name(&self) -> &'static str
fn target_name(&self) -> &'static str
Name of the target property.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".