83 #ifndef KERNEL_LINEAR_HH 84 #define KERNEL_LINEAR_HH 119 template<
typename ForwardIter,
typename Accessor>
129 template<
typename ForwardIter1,
typename Accessor1,
130 typename ForwardIter2,
typename Accessor2 >
147 template<
typename FV>
150 return x.dotProduct(y);
153 template<
typename FV,
typename FVGradient>
155 FVGradient& gradient)
const 160 template<
typename STDATA>
164 template<
typename STDATA>
168 stData.setValue(
"kernel_type",
name());
178 return "linear kernel: u'*v";
#define CHECK_MEMBER_TEMPLATE(c)
double k_function(const FV &x, const FV &y) const
static const char * name()
void gradient_of_k_function(const FV &x, const FV &y, FVGradient &gradient) const
static const char * description()
The Kernel_LINEAR class specifies a linear kernel function: u'*v.
void updateCache(const ForwardIter1 &, const ForwardIter1 &, Accessor1, const ForwardIter2 &, const ForwardIter2 &, Accessor2, ProgressReporter *=0) const
static void getParamInfos(std::vector< ParamInfo > &)
get information about the parameters, that are used in loadParameters() and saveParameters().
void saveParameters(STDATA &stData) const
void loadParameters(STDATA &)
void updateCache(const ForwardIter &, const ForwardIter &, Accessor, ProgressReporter *) const