Package generic_fns :: Module monte_carlo :: Class Monte_carlo
[hide private]
[frames] | no frames]

Class Monte_carlo

source code

Instance Methods [hide private]
 
__init__(self, relax)
Class containing functions for Monte Carlo simulations.
source code
 
create_data(self, run=None, method=None)
Function for creating simulation data.
source code
 
error_analysis(self, run=None, prune=0.0)
Function for calculating errors from the Monte Carlo simulations.
source code
 
initial_values(self, run=None)
Function for setting the initial simulation parameter values.
source code
 
off(self, run=None)
Function for turning simulations off.
source code
 
on(self, run=None)
Function for turning simulations on.
source code
 
select_all_sims(self, number=None, all_select_sim=None)
Function for setting the select flag of all simulations of all instances to one.
source code
 
setup(self, run=None, number=None, all_select_sim=None)
Function for setting up Monte Carlo simulations.
source code
Method Details [hide private]

create_data(self, run=None, method=None)

source code 

Function for creating simulation data.

It is assumed that all data types are residue specific.

error_analysis(self, run=None, prune=0.0)

source code 
Function for calculating errors from the Monte Carlo simulations.

The standard deviation formula used to calculate the errors is the square root of the
bias-corrected variance, given by the formula:

               ____________________________
              /   1
    sd  =    /  ----- * sum({Xi - Xav}^2)]
           \/   n - 1

where:
    n is the total number of simulations.
    Xi is the parameter value for simulation i.
    Xav is the mean parameter value for all simulations.

setup(self, run=None, number=None, all_select_sim=None)

source code 

Function for setting up Monte Carlo simulations.

Parameters:
  • run (str) - The name of the run.
  • number (int) - The number of Monte Carlo simulations to set up.
  • all_select_sim (Numeric matrix (int))