Address #1101 comments

This commit is contained in:
Sterling Harper 2018-10-21 18:59:03 -04:00
parent 4d84d483ef
commit 15caa0c1ca
5 changed files with 13 additions and 13 deletions

View file

@ -90,7 +90,7 @@ extern "C" void calc_rn_c(int n, const double uvw[3], double rn[]);
//! evaluated at rho and phi.
//==============================================================================
extern "C" void calc_zn_c(int n, double rho, double phi, double zn[]);
extern "C" void calc_zn(int n, double rho, double phi, double zn[]);
//==============================================================================
//! Calculate only the even radial components of n-th order modified Zernike
@ -113,7 +113,7 @@ extern "C" void calc_zn_c(int n, double rho, double phi, double zn[]);
//! evaluated at rho and phi when m = 0.
//==============================================================================
extern "C" void calc_zn_rad_c(int n, double rho, double zn_rad[]);
extern "C" void calc_zn_rad(int n, double rho, double zn_rad[]);
//==============================================================================
//! Rotate the direction cosines through a polar angle whose cosine is mu and

View file

@ -44,7 +44,7 @@ public:
double d_angle = 2.0 / n_angle;
bins_.resize(n_angle + 1);
for (int i = 0; i < n_angle; i++) bins_[i] = -1 + i * d_angle;
bins_[n_angle] = PI;
bins_[n_angle] = 1;
}
n_bins_ = bins_.size() - 1;

View file

@ -46,7 +46,7 @@ public:
if (r <= 1.0) {
// Compute and return the Zernike weights.
double zn[n_bins_];
calc_zn_c(order_, r, theta, zn);
calc_zn(order_, r, theta, zn);
for (int i = 0; i < n_bins_; i++) {
match.bins_.push_back(i+1);
match.weights_.push_back(zn[i]);
@ -106,7 +106,7 @@ public:
if (r <= 1.0) {
// Compute and return the Zernike weights.
double zn[n_bins_];
calc_zn_rad_c(order_, r, zn);
calc_zn_rad(order_, r, zn);
for (int i = 0; i < n_bins_; i++) {
match.bins_.push_back(i+1);
match.weights_.push_back(zn[i]);