MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / _modulate

Method _modulate

src/Module/Modem/BPSK/Modem_BPSK.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename B, typename R, typename Q>
36void
37Modem_BPSK<B, R, Q>::_modulate(const B* X_N1, R* X_N2, const size_t /*frame_id*/)
38{
39 auto size = (unsigned int)(this->N);
40 for (unsigned i = 0; i < size; i++)
41 X_N2[i] = (R)((B)1 - (X_N1[i] + X_N1[i])); // (X_N[i] == 1) ? -1 : +1
42}
43
44template<typename B, typename R, typename Q>
45void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected