diff_encode
Differential encoder (polynomial = \(1/(1+X)\)), MSB first.
Namespace: dsp::telecom
Prototype
void diff_encode(BitStream &y, const BitStream &x)
Parameters
x | Input binary sequence ( \(n\) bits) |
y | Output binary sequence ( \(n\) bits) |
Description
This function build a differentially encoded binary sequence:
That is, the transfert function is:
This can be used for instance in DBPSK modulation: in this case, the phase is unchanged for \(x_n=0\), and shifted of 180° for \(x_n=1\).