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

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

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

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