I think there is a bug.

Shadowing::Shadowing()
{
        bind("pathlossExp_", &pathlossExp_);
        bind("std_db_", &std_db_);
        bind("dist0_", &dist0_);
        bind("seed_", &seed_);
        ranVar = new RNG;
        ranVar->set_seed(RNG::PRED_SEED_SOURCE, seed_);

        printf("RANVAR DEBUG = %e, std_db=%e\n",ranVar->normal(0.0, 
std_db_),std_db_);

}


If we use this code (mobile/shadowing.cc) and we set 
Propagation/Shadowing seed 0 (heuristic) we will not get what we expect.
The problem is PRED_SEED_SOURCE.
Also the comman code

int Shadowing::command(int argc, const char* const* argv)
{
        if (argc == 4) {
                if (strcmp(argv[1], "seed") == 0) {
                        int s = atoi(argv[3]);
                        if (strcmp(argv[2], "raw") == 0) {
                                ranVar->set_seed(RNG::RAW_SEED_SOURCE, s);
                        } else if (strcmp(argv[2], "predef") == 0) {
                                
ranVar->set_seed(RNG::PREDEF_SEED_SOURCE, s);
                                // s is the index in predefined seed array
                                // 0 <= s < 64
                        } else if (strcmp(argv[2], "heuristic") == 0) {

                                
ranVar->set_seed(RNG::HEURISTIC_SEED_SOURCE, 0);
                        }
                        return(TCL_OK);
                }


seems to not work  when we set Propagation/Shadowing seed heuristic 0

-- 
----------------------
----------------------
Giuseppe De Marco, Ph.D.
SkypeID:giuseppe_dem2

Dipartimento di Ingegneria 
dell'Informazione e Ingegneria Elettrica
DIIIE, University of Salerno
via ponte don Melillo 1, Fisciano, Salerno
tel: +39 089 964012
email: [EMAIL PROTECTED]

Department of Information and 
Communication Engineering 
Faculty of Information Engineering 
Fukuoka Institute of Technology (FIT)
3-30-1 Wajiro-Higashi, Higashi-ku, Fukuoka 811-0295 
Japan
email: [EMAIL PROTECTED]
--------------------

Reply via email to