pub fn report(&self) {
        // calculate coefficient of determination
        let R2 = self.calculate_R2();

        println!("\t #Chi2:\t{:.6}", self.chi2);
        println!("\t #Red. Chi2:\t{:.6}", self.redchi2);
        println!("\t #R2:\t{:.6}", R2);
        println!("\t #Func. Evaluations:\t{}", self.num_func_evaluation);
        println!("\t #Converged by:\t{}", self.convergence_message);
        println!("---- Parameters ----");
        for i in 0..self.minimizer_parameters.len() {
            if self.vary_parameter[i] {
                println!(
                    "{:.8} +/- {:.8} ({:.2} %)\t(init: {})",
                    self.minimizer_parameters[i],
                    self.parameter_errors[i],
                    (self.parameter_errors[i] / self.minimizer_parameters[i]).abs() * 100.0,
                    self.model.parameters[i]
                );
            } else {
                println!("{:.8}", self.minimizer_parameters[i]);
            }
        }
    }
/// Prints report of a performed fit
Prints report of a performed fit
Prints report of a performed fit
pub fn report(&self) {
        // calculate coefficient of determination
        let R2 = self.calculate_R2();
        println!("\t #Chi2:\t{:.6}", self.chi2);
        println!("\t #Red. Chi2:\t{:.6}", self.redchi2);
        println!("\t #R2:\t{:.6}", R2);
        println!("\t #Func. Evaluations:\t{}", self.num_func_evaluation);
        println!("\t #Converged by:\t{}", self.convergence_message);
        println!("---- Parameters ----");
        for i in 0..self.minimizer_parameters.len() {
            if self.vary_parameter[i] {
                println!(
                    "{:.8} +/- {:.8} ({:.2} %)\t(init: {})",
                    self.minimizer_parameters[i],
                    self.parameter_errors[i],
                    (self.parameter_errors[i] / self.minimizer_parameters[i]).abs() * 100.0,
                    self.model.parameters[i]
                );
            } else {
                println!("{:.8}", self.minimizer_parameters[i]);
            }
        }
    }
pub fn report ( & self ) { // calculate coefficient of determination let R2 = self . calculate_R2 ( ) ; println ! ( " \t \t " self chi2 ) ; println ! ( " \t \t " self redchi2 ) ; println ! ( " \t \t " R2 ) ; println ! ( " \t \t " self num_func_evaluation ) ; println ! ( " \t \t " self convergence_message ) ; println ! ( " " ) ; for i in 0 .. self . minimizer_parameters . len ( ) { if self . vary_parameter [ i ] { println ! ( " \t " self minimizer_parameters [ i ] self parameter_errors [ i ] ( self parameter_errors [ i ] self minimizer_parameters [ i ] ) abs ( ) 100.0 self model parameters [ i ] ) ; } else { println ! ( " " self minimizer_parameters [ i ] ) ; } } }
Prints report of a performed fit
Prints report of a performed fit
&self
&self