src/ModelConstants.cpp
dvector tcsam::convertToStdDev(dvector sclVal, dvector mnVal, int sclFlg){
    dvector sdv = 0.0*sclVal;
    if (sclFlg==SCLTYPE_CV) {
        sdv = elem_prod(sclVal,mnVal);
    } else if (sclFlg==SCLTYPE_STD) {
        sdv = sclVal;
    } else if (sclFlg==SCLTYPE_VAR) {
        sdv = sqrt(sclVal);
    }
    return sdv;
}
/***************************************************************
*   Converts from variance type indicated by sclFlg to         *
*   standard deviation.                                        *
***************************************************************/
Converts from variance type indicated by sclFlg to
standard deviation.
Converts from variance type indicated by sclFlg to standard deviation .
dvector tcsam::convertToStdDev(dvector sclVal, dvector mnVal, int sclFlg){
    dvector sdv = 0.0*sclVal;
    if (sclFlg==SCLTYPE_CV) {
        sdv = elem_prod(sclVal,mnVal);
    } else if (sclFlg==SCLTYPE_STD) {
        sdv = sclVal;
    } else if (sclFlg==SCLTYPE_VAR) {
        sdv = sqrt(sclVal);
    }
    return sdv;
}
dvector tcsam :: convertToStdDev ( dvector sclVal , dvector mnVal , int sclFlg ) { dvector sdv = 0.0 * sclVal ; if ( sclFlg == SCLTYPE_CV ) { sdv = elem_prod ( sclVal , mnVal ) ; } else if ( sclFlg == SCLTYPE_STD ) { sdv = sclVal ; } else if ( sclFlg == SCLTYPE_VAR ) { sdv = sqrt ( sclVal ) ; } return sdv ; }
Converts from variance type indicated by sclFlg to         
standard deviation.
Converts from variance type indicated by sclFlg to standard deviation .