55 ft=ct/(va*(ba*
exp(-m/2.)));
57 for(
int i=1;i<=50;i++)
104 double minsurv = 0.05;
122 ft(i) = ctmp(i)/(0.98*ba*V(i)*
exp(-0.5*m));
126 ctmp=ft(i)*ba*V(i)*
exp(-0.5*m);
132 for(
int iter=1; iter<=17; iter++)
134 for(i=1;i<=ng;i++)F(i)=ft(i)*V(i);
152 ft(i) -= (ct_hat(i)-ctmp(i))/dct_hat(i);
185 double minsurv = 0.05;
205 ft(i) = ctmp(i)/(0.98*ba*V(i)*
exp(-0.5*m));
209 ctmp(i)=ft(i)*ba*V(i)*
exp(-0.5*m);
215 for(
int iter=1; iter<=17; iter++)
217 for(i=1;i<=ng;i++)F(i)=ft(i)*V(i);
238 ft(i) -= (ct_hat(i)-ctmp(i))/dct_hat(i);
d3_array elem_prod(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements product of a(i, j, k) * b(i, j, k).
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array elem_div(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements division of a(i, j, k) / b(i, j, k).
d3_array mfexp(const d3_array &m)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double get_ft(const double &ct, const double &m, const dvector &va, const dvector &ba)
int indexmax() const
Get maximum valid index.
double colsum(const dmatrix &m, int col)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
Description not yet available.
Library of statistic functions.
unsigned int size_count(const dvector &x)
Returns total size of elements in vector x.
double square(const double value)
Return square of value; constant object.