src/wl.cpp
/**
 * Sets parameters for Wang Landau class. 
 * @param f_init (double): Initial value for the inital modification factor. Usually set to exp(1).
 * @param f_final (double): Final value for the modification factor. Should be very close to 1, e.g. 1 + 10^(-8).
 * @param flatness (double): Flatness criteria. Value between 0 and 1. Usually 0.9.
 */
Sets parameters for Wang Landau class.
@param f_init (double): Initial value for the inital modification factor.
Sets parameters for Wang Landau class . @param f_init ( double ) : Initial value for the inital modification factor .
void WL::set_params(double f_init, double f_final, double flatness) {
    this->f_init = f_init;
    this->f_final = f_final;
    this->flatness = flatness;
    this->n_f_vals = 0;
    while (f_init > this->f_final) {
        n_f_vals++;
        f_init = sqrt(f_init);
    }
    this->time_iter = new double[this->n_f_vals];
    this->steps_iter = new unsigned long long[this->n_f_vals];
    this->run_time = 0;
    this->added_params = true;
}
void WL :: set_params ( double f_init , double f_final , double flatness ) { this -> f_init = f_init ; this -> f_final = f_final ; this -> flatness = flatness ; this -> n_f_vals = 0 ; while ( f_init > this -> f_final ) { n_f_vals ++ ; f_init = sqrt ( f_init ) ; } this -> time_iter = new double [ this -> n_f_vals ] ; this -> steps_iter = new unsigned long long [ this -> n_f_vals ] ; this -> run_time = 0 ; this -> added_params = true ; }
Sets parameters for Wang Landau class.
Sets parameters for Wang Landau class .