49 p->
alpha = gsl_vector_get(x, 0);
50 p->
theta = gsl_vector_get(x, 1);
60 for (i=1; i<nt; i++) {
88 void rti_theory(
int nt,
double spdist,
double samplitude,
double sdelay,
double sduration,
double kappa,
double dfree,
double alpha,
double theta,
double *t,
double *p_theory)
92 double dstar = theta * dfree;
93 double ampl = samplitude / (4.0 *
PI * alpha * dstar * spdist);
95 for (i=0; i<nt; i++) {
99 p_theory[i] = ampl * erfc( spdist /
100 (2.0 * sqrt(dstar * (t[i] - sdelay))) );
101 if (t[i] > sdelay + sduration)
102 p_theory[i] = p_theory[i] - ampl * erfc( spdist /
103 (2.0 * sqrt(dstar * (t[i] - (sdelay + sduration)))) );
double * p_theory
Probe concentration from homogeneous model (characteristic curve)
double sduration
Duration of source.
double kappa
Nonspecific clearance factor.
double sdelay
Source delay (time before source starts)
double * p_model
Probe concentration from multilayer model.
double calc_mse_rti(const gsl_vector *x, void *params)
Mean squared error function for simplex fitting.
double samplitude
Amplitude of source.
double dfree
Free diffusion coefficient.
double spdist
Distance between source and probe.
double alpha
Extracellular volume fraction.
void rti_theory(int nt, double spdist, double samplitude, double sdelay, double sduration, double kappa, double dfree, double alpha, double theta, double *t, double *p_theory)
Calculates RTI data for diffusion in an isotropic, homogeneous environment (direct calculation from a...
double theta
Permeability.
int nt
Number of time points of calculation.