[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Random seeding of multistate error model
to change the seed of the default RNG might be an option.
$defaultRNG seed <x>
regards,
morten
[email protected] wrote:
>
> Hi everyone,
> Could anyone please help with randomly seeding a multistate
> error model? The usual way of randomly seeding a random number generator
> (set rng [new RNG]
> $rng seed 0)
> dosent seem to work. I'd appreciate it if someone could please show me
> how to seed a multistate error model. I am attaching the tcl script
> corresponding to the errormodel. Thanks a lot,
>
> Biplab Sikdar
> Dept. of ECSE
> Rensselaer Polytechnic Inst.
> Troy NY 12180
>
> set m_states [list $tmp $tmp1 ]
>
> set m_periods [list 1000.0 1000.00 ]
> set m_transmx { {0.90 0.10} {0.90 0.10} }
> set m_trunit pkt
> set m_sttype pkt
> set m_nstates 2
> set m_nstart [lindex $m_states 0]
>
> set em [new ErrorModel/MultiState $m_states $m_periods $m_transmx
> $m_trunit $m_sttype $m_nstates $m_nstart]
--
------------------------------------------------------------------------
Morten Schl�ger Tel.: ++49 (030) 314-23834
Technical University Berlin Fax.: ++49 (030) 314-23818
Telecommunication Networks Group (TKN) [email protected]
Sekr. FT 5-2/Einsteinufer 25
10587 Berlin, Germany