Skip to main content

run_benchmark_case

Function run_benchmark_case 

Source
pub fn run_benchmark_case<A, M>(
    dataset_name: impl Into<String>,
    algorithm_configuration: impl Into<String>,
    algorithm: A,
    problem: &ReconstructionProblem<M>,
    ground_truth: Option<&Array2<Complex64>>,
    true_model: Option<&ImagePlaneModel>,
    valid_object_mask: Option<&Array2<u8>>,
) -> (BenchmarkRecord, Option<ReconstructionResult>)
Expand description

Runs one concrete algorithm and always returns a record. Reconstruction or metric failures are stored in record.error; successful reconstruction data is returned separately so callers may inspect or save it.