Skip to main content

evaluate_components

Function evaluate_components 

Source
pub fn evaluate_components(
    graph: &FitGraphSpec,
    params_flat: &HashMap<String, f64>,
    x: &[f64],
) -> Result<HashMap<String, Vec<f64>>, CoreError>
Expand description

Evaluate each node independently.

Returns a map { "node_id" => Vec<f64> }.

§Errors

Returns CoreError::Eval if: the graph fails to compile (see CompiledGraph::compile); params_flat is missing a required "node_id.param_name" entry; x.len() is not an exact multiple of the graph’s coordinate dimensionality; or a node’s dataset_index is out of range for the compiled dataset_offsets.