le-liang / MARLspectrumSharingV2X

Spectrum sharing in vehicular networks based on multi-agent reinforcement learning, IEEE Journal on Selected Areas in Communications
226 stars 93 forks source link

Error in code? #8

Closed farzanullah closed 3 years ago

farzanullah commented 3 years ago

In Environment_MARL.py line 110, the code is self.V2I_power = 10 ** (self.V2I_power_dB)

however i think the line should be self.V2I_power = 10 ** (self.V2I_power_dB / 10)

is this correct?

le-liang commented 3 years ago

In Environment_MARL.py line 110, the code is self.V2I_power = 10 ** (self.V2I_power_dB)

however i think the line should be self.V2I_power = 10 ** (self.V2I_power_dB / 10)

is this correct?

Thanks for pointing out this typo. Removed this line of redundant code since we worked directly with "_dB" throughout the program.