Skip to content

Commit

Permalink
Fix aloha collision matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
DvdMgr committed Mar 5, 2021
1 parent d0349ca commit 2340df1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions model/lora-interference-helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,14 @@ operator<< (std::ostream &os, const LoraInterferenceHelper::Event &event)
// This collision matrix can be used for comparisons with the performance of Aloha
// systems, where collisions imply the loss of both packets.
double inf = std::numeric_limits<double>::max ();
double minf = std::numeric_limits<double>::min ();
std::vector<std::vector<double>> LoraInterferenceHelper::collisionSnirAloha= {
std::vector<std::vector<double>> LoraInterferenceHelper::collisionSnirAloha= {
// 7 8 9 10 11 12
{inf, minf, minf, minf, minf, minf}, // SF7
{minf, inf, minf, minf, minf, minf}, // SF8
{minf, minf, inf, minf, minf, minf}, // SF9
{minf, minf, minf, inf, minf, minf}, // SF10
{minf, minf, minf, minf, inf, minf}, // SF11
{minf, minf, minf, minf, minf, inf} // SF12
{inf, -inf, -inf, -inf, -inf, -inf}, // SF7
{-inf, inf, -inf, -inf, -inf, -inf}, // SF8
{-inf, -inf, inf, -inf, -inf, -inf}, // SF9
{-inf, -inf, -inf, inf, -inf, -inf}, // SF10
{-inf, -inf, -inf, -inf, inf, -inf}, // SF11
{-inf, -inf, -inf, -inf, -inf, inf} // SF12
};

// LoRa Collision Matrix (Goursaud)
Expand Down

0 comments on commit 2340df1

Please sign in to comment.