Fundamental Materials and Tools 31
peaks (determined by w)orlowerhitprobabilities.However,theirerrorprobabili-
ties get worse as K increases, due to stronger mutual interference. In general,Gold
sequences perform better than the prime codes because the former have code weight
equal to code length and data bit 0s are transmitted with phase-conjugate codes, re-
sulting in a higher SIR.
1.8.3 Combinatorial Analysis for Unipolar Codes
In addition to Gaussian approximation, a more accurate combinatorial method can
be applied to analyze the performance of unipolar codes in OOKmodulation.
As men tio ned in Section 1.8.1, for unipolar codes with the maximum cross-
correlation value of
λ
c
,eachinterferingcodeword(orinterferer)maycontributeup
to
λ
c
hits toward the cross-correlation function. For a given K simultaneous users, the
total number of interferers is given by K −1 =
∑
λ
c
k=0
l
k
,andthetotalnumberofhits
seen by the receiv er in the sampling time is given by
∑
λ
c
k=0
kl
k
,wherel
k
represents
the number of interfering codewords contributing k hits toward the cross-correlation
function. The conditional probability of h aving Z =
∑
λ
c
k=0
kl
k
hits contributed by these
interfering codewords follows a multinomial distribution.Furthermore,inOOK,a
decision error occurs whenever the received data bit is 0, butthetotalnumberofhits
seen by the recei v er in the sampling time is as high as the decision threshold Z
th
.So,
the error probability of unipolar codes with the maximum cross-correlation function
of
λ
c
in OOK is formulated as [21, 27, 30]
P
e
=
1
2
Pr(Z ≥ Z
th
| K simultaneous users, receiver receives bit 0)
=
1
2
∑
∑
λ
c
k=0
kl
k
≥Z
th
(K −1 )!
l
0
!l
1
!···l
λ
c
!
q
l
0
0
q
l
1
1
···q
l
λ
c
λ
c
=
1
2
−
1
2
Z
th
−1
∑
l
1
=0
+(Z
th
−1−l
1
)/2,
∑
l
2
=0
···
+(Z
th
−1−
∑
λ
c
−1
k=1
kl
k
)/
λ
c
,
∑
l
λ
c
=0
(K −1 )!
l
0
!l
1
!···l
λ
c
!
q
l
0
0
q
l
1
1
···q
l
λ
c
λ
c
where the factor 1/2isduetoOOKwithequalprobabilityoftransmittingdatabit
1s and 0s, q
i
denotes the probability of having i ∈ [0,
λ
c
] hits (contributed by each
interfering codeword) toward the cross-correlation function in the sampling time,
∑
λ
c
k=0
l
k
= K −1, and +·, is the floor function. Because q
i
is a probability term, it is
always true that
∑
λ
c
i=0
q
i
= 1.
For example, the error probability of unipolar codes with
λ
c
= 2inOOKisgiven
by
P
e
=
1
2
−
1
2
Z
th
−1
∑
l
1
=0
+(Z
th
−1−l
1
)/2,
∑
l
2
=0
(K −1 )!
l
0
!l
1
!l
2
!
q
l
0
0
q
l
1
1
q
l
2
2
(1.2)
where l
0
+ l
1
+ l
2
= K −1, q
0
+ q
1
+ q
2
= 1, and Z
th
is usually set to w for optimal
decision.