26 Optical Coding Theory with Prime
codewords, cross-correlation functions are generated and they create mutual inter-
ference. The aggregated cross-correlation functions and the autocorrelation function
(if it exists) are then sampled and threshold-detected. If the sum of all functions in
the sampling time, which is usually set at the expected (time)positionoftheauto-
correlation peak, is as high as a predetermined decision-threshold level, a d ata bit 1
is recovered. Otherwise, a bit 0 is decided.
Assume that every simultaneous user sends data bit 0s and 1s with equal but
independent probabilities: p
0
= p
1
= 1/2. Let q
i
denote the probability that the cross-
correlation value between an interfer in g codeword and the address codeword of a
receiver in the sampling time is i an d is defined as
q
i
=
1
∑
x=0
Pr(cross-correlation value = i,receiverreceivesbitx)p
x
= 0.5Pr(cross-corr elation value = i,receiverreceivesbit1)
This kind of probability is commonly referred to as hit probability. The probability
term with bit x = 0isequalto0inOOKbecausenocodewordistransmittedand,
thus, no interference is generated for a data bit 0. The hit probability generally de-
pends on the code parameters, such as weight and length, of theunipolarcodewords
in use and will be given in their respective chapters.
For unipolar codes with the maximum cross-correlation function of
λ
c
,eachinter-
fering codeword may contribute up to
λ
c
pulses (or hits) toward the cross-correlation
function. So, the total number of hits seen by a receiver in thesamplingtimeisgiven
by
∑
λ
c
k=0
kl
k
,wherel
k
represents the number of interfering codewords con tributing
k ∈ [0,
λ
c
] hits toward the cross-correlation function. The conditional p robability of
having the correlation value Z =
∑
λ
c
k=0
kl
k
is given by a multinomial distribution as
Pr(Z hits | K users, receiver receives bit 0)=
(K −1 )!
l
0
!l
1
!···l
λ
c
!
q
l
0
0
q
l
1
1
···q
l
λ
c
λ
c
As ther e ar e K −1 =
∑
λ
c
k=0
l
k
interferers (or interfering codewords), the conditional
error probability of the receiver, which is actually receiving a bit 0, can be written as
Pr(error | K simultaneous users, receiver receives bit 0)
= Pr(Z ≥ Z
th
| K simultaneous users, receiver recei ves bit 0)
= 1 −
Z
th
∑
∑
λ
c
k=0
kl
k
=0
(K −1 )!
l
0
!l
1
!···l
λ
c
!
q
l
0
0
q
l
1
1
···q
l
λ
c
λ
c
≈ 1 −
/
Z
th
0
1
0
2
πσ
2
0
e
−(x−m
0
)
2
2
σ
2
0
dx
≈ 1 −
/
Z
th
−∞
1
0
2
πσ
2
0
e
−(x−m
0
)
2
2
σ
2
0
dx