Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Garnier Jean-Romain
Performance of QPSK Modulation over Dowlink NOMA
Commits
088c5577
Commit
088c5577
authored
Apr 29, 2019
by
JRock007
Browse files
Graph theoretical BER for 2 users
parent
d3acfc51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Comparaison_Modele_Theorie.py
View file @
088c5577
...
...
@@ -106,5 +106,20 @@ def compDiffCarres(loop_range=5, it=1000):
print
(
diff
)
def
plotTh2users
(
P
,
sigma
,
g
):
probas
=
[]
puissances
=
np
.
array
(
P
)
for
p
in
puissances
:
probas
.
append
(
NOMATh
.
theorie
(
g
,
sigma
,
p
,
2
)[
0
])
plt
.
plot
(
puissances
[:,
-
1
],
probas
)
plt
.
show
()
if
__name__
==
'__main__'
:
compRepartitionPuissance
()
# compRepartitionPuissance()
P1
=
np
.
arange
(
0.88
,
0.999
,
0.001
)
P
=
[(
1
-
p
,
p
)
for
p
in
P1
]
sigma
=
0.075
g
=
1
plotTh2users
(
P
,
sigma
,
g
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment