Skip to content

Commit 623ab95

Browse files
committed
Revert usage of LUT for radial basis function in Spline until the regression is understood
1 parent b7ad8ae commit 623ab95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interpolation/TPSpline.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ double thin_plate_spline::operator()(std::vector< boost::tuple<double,double,dou
108108
//And Hengl and Evans in geomorphometry p.52 do not, but have some undefined omega_0/omega_1 weights
109109
//it is all rather confusing. But this follows Mitášová exactly, and produces essentially the same answer
110110
//as the worked example in box 16.2 in Chang
111-
// set Rd = -(log(dij) + c + gsl_sf_expint_E1(dij))
112-
Rd = TPSBasis_LUT(dij);
111+
Rd = -(log(dij) + c + gsl_sf_expint_E1(dij));
112+
// Rd = TPSBasis_LUT(dij);
113113
}
114114

115115
A(i, j + 1) = Rd;
@@ -164,8 +164,8 @@ double thin_plate_spline::operator()(std::vector< boost::tuple<double,double,dou
164164
dij = (dij * weight/2.0) * (dij * weight/2.0);
165165
// set Rd equal to -(log(dij) + c + gsl_sf_expint_E1(dij))
166166

167-
double Rd = TPSBasis_LUT(dij);
168-
167+
// double Rd = TPSBasis_LUT(dij);
168+
double Rd = -(log(dij) + c + gsl_sf_expint_E1(dij));
169169
z0 = z0 + x(i)*Rd;
170170
}
171171

0 commit comments

Comments
 (0)