Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::DotProduct Class Reference

This class defines a dot product kernel function for two vectors. More...

#include <dot-product.H>

Inheritance diagram for reranker::DotProduct:
reranker::KernelFunction

Public Member Functions

virtual double Apply (const FeatureVector< int, double > &fv1, int index1, const FeatureVector< int, double > &fv2, int index2) const
 Applies this kernel function to the specified feature vectors. More...
 
- Public Member Functions inherited from reranker::KernelFunction
virtual ~KernelFunction ()
 
virtual double Apply (const FeatureVector< int, double > &fv1, const FeatureVector< int, double > &fv2)
 Applies this kernel function to the specified feature vectors. More...
 

Detailed Description

This class defines a dot product kernel function for two vectors.

See Also
reranker::FeatrueVector::Dot

Definition at line 47 of file dot-product.H.

Member Function Documentation

virtual double reranker::DotProduct::Apply ( const FeatureVector< int, double > &  fv1,
int  index1,
const FeatureVector< int, double > &  fv2,
int  index2 
) const
inlinevirtual

Applies this kernel function to the specified feature vectors.

Parameters
fv1the first feature vector
index1the training example index of the first feature vector, if known, or else -1; concrete implementations may ignore this argument
fv2the second feature vector
index2the training example index of the second feature vector, if known, or else -1; concrete implementations may ignore this argument

Implements reranker::KernelFunction.

Definition at line 49 of file dot-product.H.


The documentation for this class was generated from the following file: