20 double dmin(
double,
double);
21 double dmax(
double,
double);
36 ad_printf(
"variable out of bounds in boundpin: variable = %lg", x);
40 x=
dmin(fmin+.001,fmin+.01*(fmax-fmin));
45 ad_printf(
"variable out of bounds in boundpin: variable = %lg", x);
49 x=
dmax(fmax-.001,fmax-.01*(fmax-fmin));
52 tinv=
::asin(2.*(x-fmin)/(fmax-fmin)-1.)/1.57079632679489661;
Base class for dvariable.
void fmin(double f, const independent_variables &x, const dvector &g, const int &n, const dvector &w, const dvector &h, const fmm_control &fmc)
double boundpin(double x, double fmin, double fmax, double s)
Scale model variable over [-1,1]; constant objects.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector value(const df1_one_vector &v)
int ad_printf(FILE *stream, const char *format, Args...args)
dvector asin(const dvector &vec)
Returns dvector with principal value of the arc sine of vec, expressed in radians.