19 #define _USE_MATH_DEFINES 24 m_projectionType(projectionType),
53 Real magsq = re*re + im*im;
68 Real magsq = re*re + im*im;
69 v = log10f(magsq) * 10.0f;
83 }
else if (dPhi > 1.0f) {
97 }
else if (arg <
M_PI/2) {
99 }
else if (arg <
M_PI) {
109 if (arg < -3*
M_PI/4) {
111 }
else if (arg < -
M_PI/4) {
113 }
else if (arg <
M_PI/4) {
115 }
else if (arg < 3*
M_PI/4) {
117 }
else if (arg <
M_PI) {
127 if (arg < -7*
M_PI/8) {
129 }
else if (arg < -5*
M_PI/8) {
131 }
else if (arg < -3*
M_PI/8) {
133 }
else if (arg < -
M_PI/8) {
135 }
else if (arg <
M_PI/8) {
137 }
else if (arg < 3*
M_PI/8) {
139 }
else if (arg < 5*
M_PI/8) {
141 }
else if (arg < 7*
M_PI/8) {
143 }
else if (arg <
M_PI) {
153 if (arg < -15*
M_PI/16) {
155 }
else if (arg < -13*
M_PI/16) {
157 }
else if (arg < -11*
M_PI/16) {
159 }
else if (arg < -9*
M_PI/16) {
161 }
else if (arg < -7*
M_PI/16) {
163 }
else if (arg < -5*
M_PI/16) {
165 }
else if (arg < -3*
M_PI/16) {
167 }
else if (arg < -
M_PI/16) {
169 }
else if (arg <
M_PI/16) {
171 }
else if (arg < 3.0*
M_PI/16) {
173 }
else if (arg < 5.0*
M_PI/16) {
175 }
else if (arg < 7.0*
M_PI/16) {
177 }
else if (arg < 9.0*
M_PI/16) {
179 }
else if (arg < 11.0*
M_PI/16) {
181 }
else if (arg < 13.0*
M_PI/16) {
183 }
else if (arg < 15.0*
M_PI/16) {
185 }
else if (arg <
M_PI) {
206 while (angle <= -
M_PI) {
209 while (angle >
M_PI) {
ProjectionType m_projectionType
Calculate logarithmic (dB) of squared magnitude.
Projector(ProjectionType projectionType)
Phase comparator 8-PSK evaluation.
Phase comparator 16-PSK evaluation.
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Phase comparator BPSK evaluation.
Calculate linear magnitude or modulus.
Fixed< IntType, IntBits > sqrt(Fixed< IntType, IntBits > const &x)
Calculate linear squared magnitude or power.
Calculate phase derivative i.e. instantaneous frequency scaled to sample rate.
static Real normalizeAngle(Real angle)
Phase comparator QPSK evaluation.
Real run(const Sample &s)