#include <Cordic.h>
Public Member Functions | |
Cordic (const uint32_t &aPhiScale, const uint32_t &aMagnitudeBits, const uint32_t &aSteps) | |
int32_t | IntegerizeMagnitude (const double &aMagnitude) const |
double | NormalizeMagnitude (const uint32_t &aMagnitude) const |
double | NormalizePhi (const uint32_t &aPhi) const |
void | operator() (int32_t aX, int32_t aY, int32_t &aPhi, uint32_t &aMagnitude) const |
virtual | ~Cordic () |
Private Member Functions | |
uint32_t | tower (const double &aRadians) const |
Private Attributes | |
uint32_t | mMagnitudeBits |
uint64_t | mMagnitudeRenormalization |
uint32_t | mMagnitudeScale |
uint32_t | mPhiScale |
const double | mPi |
std::vector< uint32_t > | mRotations |
uint32_t | mSteps |
Cordic::Cordic | ( | const uint32_t & | aPhiScale, |
const uint32_t & | aMagnitudeBits, | ||
const uint32_t & | aSteps | ||
) |
Definition at line 9 of file Cordic.cc.
References mMagnitudeRenormalization, mMagnitudeScale, mRotations, mSteps, funct::pow(), mathSSE::sqrt(), and tower().
int32_t Cordic::IntegerizeMagnitude | ( | const double & | aMagnitude | ) | const |
double Cordic::NormalizeMagnitude | ( | const uint32_t & | aMagnitude | ) | const |
Definition at line 30 of file Cordic.cc.
References mMagnitudeScale.
double Cordic::NormalizePhi | ( | const uint32_t & | aPhi | ) | const |
void Cordic::operator() | ( | int32_t | aX, |
int32_t | aY, | ||
int32_t & | aPhi, | ||
uint32_t & | aMagnitude | ||
) | const |
Definition at line 38 of file Cordic.cc.
References simKBmtfDigis_cfi::aPhi, mMagnitudeBits, mMagnitudeRenormalization, mPi, mRotations, mSteps, tower(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
|
private |
|
private |
Definition at line 24 of file Cordic.h.
Referenced by operator()().
|
private |
Definition at line 26 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 23 of file Cordic.h.
Referenced by Cordic(), IntegerizeMagnitude(), and NormalizeMagnitude().
|
private |
Definition at line 22 of file Cordic.h.
Referenced by NormalizePhi(), and tower().
|
private |
Definition at line 29 of file Cordic.h.
Referenced by operator()(), and tower().
|
private |
Definition at line 27 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 25 of file Cordic.h.
Referenced by Cordic(), and operator()().