41 #ifndef DTK_WUBASIS_IMPL_HPP 42 #define DTK_WUBASIS_IMPL_HPP 59 const double x )
const 61 double xval = x / radius;
62 double onemx = 1.0 - xval;
63 double onemx2 = onemx * onemx;
64 double xp2 = xval * xval;
66 ? onemx * onemx2 * onemx2 *
67 ( 5.0 * xp2 * xp2 + 25.0 * xval * xp2 + 48.0 * xp2 +
80 const double x )
const 82 double xval = x / radius;
83 double xmone = xval - 1.0;
84 double xmone2 = xmone * xmone;
87 ? -9.0 * xmone2 * xmone2 * xval *
88 ( 5.0 * xp2 * xval + 20.0 * xp2 + 29.0 * xval + 16.0 )
100 const double x )
const 102 double xval = x / radius;
103 double onemx = 1.0 - xval;
104 double onemx3 = onemx * onemx * onemx;
105 double xp2 = xval * xval;
106 double xp4 = xp2 * xp2;
107 return ( xval < 1.0 )
109 ( 5.0 * xp4 * xval + 30.0 * xp4 + 72.0 * xp2 * xval +
110 82.0 * xp2 + 36.0 * xval + 6.0 )
122 const double x )
const 124 double xval = x / radius;
125 double xmone = xval - 1.0;
126 double xmone2 = xmone * xmone;
127 double xp2 = xval * xval;
128 return ( xval < 1.0 )
129 ? 11.0 * xmone2 * xmone2 * xmone * xval *
130 ( 5.0 * xp2 * xp2 + 25.0 * xp2 * xval + 48.0 * xp2 +
141 #endif // end DTK_WUBASIS_IMPL_HPP Euclidean distance function.
Wu compactly supported radial basis function.