[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Re: Markov Error Model
Hi,
I am running ns-2-snapshot-20000827, ns when I checked the
ErrorModel/TwoStateMarkov procesure in ns-errmodel.tcl file looks like this:-
ErrorModel/TwoStateMarkov instproc init {rate eu {transition}} {
$self next
$self unit time
set rv0 [new RandomVariable/Exponential]
set rv1 [new RandomVariable/Exponential]
$rv0 set avg_ [lindex $rate 0]
$rv1 set avg_ [lindex $rate 1]
$self ranvar 0 $rv0
$self ranvar 1 $rv1
# set p01 [lindex $transition 0]
# set p10 [lindex $transition 1]
# set trans [list [list [expr 1 - $p01] $p01] \
# [list [expr 1 - $p01] $p01]]
# # state 0 is the start state
# $self next $states_ $trans $eu $i [lindex $states_ 0]
}
Do we still need eu and transition passed in the procedure since they seem not
to be used ? Does rate mean the transmission rate of the packet ?
I'd appreciate some explaination !!
-- Martin
---------------------------------------------------------------------
Martin L.W.D Koyabe e-mail: [email protected]
Electronics Research Group
Fraser Noble Building
King's College, AB24 3UE (Off) +44-01224-272813
Aberdeen, UK (Mob) +44-07881-610825