src/ModelParameterInfoTypes.cpp
double BoundedNumberInfo::jitterInitVal(random_number_generator& rng, double jitFrac){
    double vp = initVal;
    if (phase>0){
        //double d = upper-lower;
        double r = rng.better_rand();
        //vp = min(max(lower+0.0001*d,initVal+wts::min(1.0,jitFrac)*(r-0.5)*d),upper-0.0001*d);
        vp = tcsam::jitterIt(initVal, lower, upper, jitFrac, r);
    }
    return vp;
}
/**
 * Draws a jittered random value on the arithmetic scale based on the 
 * bounds set and the fraction of the range to jitter (jitFrac).
 * 
 * Note that this DOES NOT update initVal.
 * If the estimation phase is \< 0, the value of initVal is returned
 * 
 * @param rng - the random number generator
 * @param jitFrac - the fraction of the range across which to jitter
 * 
 * @return - the random number on the arithmetic scale, or the value of initVal
 */
Draws a jittered random value on the arithmetic scale based on the
bounds set and the fraction of the range to jitter (jitFrac).

Note that this DOES NOT update initVal.
If the estimation phase is \< 0, the value of initVal is returned

@param rng - the random number generator
@param jitFrac - the fraction of the range across which to jitter

@return - the random number on the arithmetic scale, or the value of initVal
Draws a jittered random value on the arithmetic scale based on the bounds set and the fraction of the range to jitter ( jitFrac ) . Note that this DOES NOT update initVal . If the estimation phase is \ < 0 the value of initVal is returned @param rng - the random number generator @param jitFrac - the fraction of the range across which to jitter @return - the random number on the arithmetic scale or the value of initVal
double BoundedNumberInfo::jitterInitVal(random_number_generator& rng, double jitFrac){
    double vp = initVal;
    if (phase>0){
        double r = rng.better_rand();
        vp = tcsam::jitterIt(initVal, lower, upper, jitFrac, r);
    }
    return vp;
}
double BoundedNumberInfo :: jitterInitVal ( random_number_generator & rng , double jitFrac ) { double vp = initVal ; if ( phase > 0 ) { double r = rng . better_rand ( ) ; vp = tcsam :: jitterIt ( initVal , lower , upper , jitFrac , r ) ; } return vp ; }
Draws a jittered random value on the arithmetic scale based on the
 bounds set and the fraction of the range to jitter (jitFrac).
Draws a jittered random value on the arithmetic scale based on the bounds set and the fraction of the range to jitter ( jitFrac ) .
//double d = upper-lower; //vp = min(max(lower+0.0001*d,initVal+wts::min(1.0,jitFrac)*(r-0.5)*d),upper-0.0001*d);