Skip to content

Commit

Permalink
Add independent channel generation
Browse files Browse the repository at this point in the history
  • Loading branch information
muhd-umer committed Mar 11, 2024
1 parent cd7a32f commit 2518476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion comyx/network/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def update_channel(
self.update_params(distance=distance)

if not ex_rvs:
self.generate_rvs(custom_rvs=custom_rvs, seed=self.seed)
# generate new random variables
self.generate_rvs(custom_rvs=custom_rvs, seed=None)

pathloss = db2pow(-self.pathloss)
self._channel_gain = np.sqrt(pathloss) * self.rvs
Expand Down
2 changes: 1 addition & 1 deletion research/deep-rl-energyeff

0 comments on commit 2518476

Please sign in to comment.