R/simulate_experiment.R

Defines functions simulate_experiment

Documented in simulate_experiment

simulate_experiment <-
function(theta, knobj, experiment_fun){
	## Simulates experiment for parameter theta, with global parameters from knobj
	## and parameter modification and initial condition modified by experiment_fun
	
	theta <- knobj$transform_params(theta)
	temp <- experiment_fun(theta, knobj$global_parameters$initial_conditions)
	
	simulate_experiment_no_transform(temp$theta, temp$initial_conditions, knobj)
}

Try the pauwels2014 package in your browser

Any scripts or data that you put into this service are public.

pauwels2014 documentation built on May 1, 2019, 6:29 p.m.