43 #ifndef KERNEL_EDSQR_HH 44 #define KERNEL_EDSQR_HH 82 template<
typename ForwardIter,
typename Accessor>
84 const ForwardIter& fvEnd,
92 template<
typename ForwardIter1,
typename Accessor1,
93 typename ForwardIter2,
typename Accessor2 >
95 const ForwardIter1& fvEnd1,
97 const ForwardIter2& fvBegin2,
98 const ForwardIter2& fvEnd2,
110 template<
typename FV>
113 return x.square() - 2*x.dotProduct(y) + y.square();
116 template<
typename STDATA>
122 template<
typename STDATA>
126 stData.setValue(
"kernel_type",
name());
136 return "squared Euclidean distance function: |u-v|^2";
#define CHECK_MEMBER_TEMPLATE(c)
void saveParameters(STDATA &stData) const
void updateCache(const ForwardIter &fvBegin, const ForwardIter &fvEnd, Accessor accessor, ProgressReporter *pr=0) const
double k_function(const FV &x, const FV &y) const
static const char * description()
void updateCache(const ForwardIter1 &fvBegin1, const ForwardIter1 &fvEnd1, Accessor1 accessor1, const ForwardIter2 &fvBegin2, const ForwardIter2 &fvEnd2, Accessor2 accessor2, ProgressReporter *pr=0) const
The Kernel_EDsqr class specifies a Euclidean distance kernel |u-v|^2 to be used in the distance subst...
void loadParameters(STDATA &stData)
static const char * name()
static void getParamInfos(std::vector< ParamInfo > &p)
get information about the parameters, that are used in loadParameters() and saveParameters().