@@ -44,7 +44,7 @@ struct EdgeMethodCostFuncTest : public ::testing::Test {
44
44
// add roll offset (perturbed)
45
45
auto lka_ant_rad = lka_edge_rad + roll * md2r;
46
46
// add a gain offset
47
- auto gain_ant = polyvals (pf_ref, lka_ant_rad) + gain_ofs;
47
+ Eigen::ArrayXd gain_ant = polyvals (pf_ref, lka_ant_rad) + gain_ofs;
48
48
pf_ant_vec.push_back (
49
49
isce3::math::polyfitObj (lka_edge_rad, gain_ant, 3 , false ));
50
50
}
@@ -105,9 +105,9 @@ struct EdgeMethodCostFuncTest : public ::testing::Test {
105
105
const double max_lka_edge_deg {34.0 };
106
106
const double prec_lka_edge_deg {1e-3 };
107
107
const int num_lka_edge {
108
- static_cast <int >(
109
- (max_lka_edge_deg - min_lka_edge_deg) / prec_lka_edge_deg) +
110
- 1 };
108
+ static_cast <int >(std::round ((max_lka_edge_deg - min_lka_edge_deg) /
109
+ prec_lka_edge_deg) +
110
+ 1 ) };
111
111
112
112
// gain offset in (dB) between relative EL power patterns extracted from
113
113
// antenna and echo. the roll offset estimation is insensitive to this gain
@@ -125,8 +125,8 @@ struct EdgeMethodCostFuncTest : public ::testing::Test {
125
125
// Build a 6-order polyminals of a relative antenna gain from gain (dB)
126
126
// versus look angles (rad) to be used as a reference for building both
127
127
// antenna and echo data
128
- // These points are extracted from a realitic EL power pattern of ALOS1 beam
129
- // #7.
128
+ // These points are extracted from a realistic EL power pattern of ALOS1
129
+ // beam #7.
130
130
std::vector<double > gain {
131
131
-2.2 , -1.2 , -0.55 , -0.2 , 0.0 , -0.2 , -0.5 , -1.0 , -2.0 };
132
132
std::vector<double > lka_deg {
0 commit comments