name: SupportVectorModel : public StatisticalModelBase

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_stat.a

#include <SupportVectorModel.h>

SupportVectorModel();
SupportVectorModel(const SupportVectorModel& arg);
boolean eq(const SupportVectorModel& arg) const;
boolean assign(const SupportVectorModel& arg);
boolean setNumSupportVectors(long number, ALGORITHM algorithm = DEF_ALGORITHM);
VectorFloat& getSupportVector(long index);
Kernel& getKernel(long index);
Float& getAlpha(long index);
float getDistance();
float getLogLikelihood(const VectorFloat& input);
quick start:

VectorFloat support_vector0(L"2.3, 4.5");
VectorFloat support_vector1(L"1.3, -2.4");
VectorFloat alphas(L"0.4, 0.6");
VectorFloat test_vector(L"0.1, 0.3");

SupportVectorModel svm;
svm.setNumSupportVectors(2);
svm.getSupportVector(0) = support_vector(0);
svm.getSupportVector(1) = support_vector(1);
svm.getAlphas(0) = alphas(0);
svm.getAlphas(1) = alphas(1);
svm.getLogLikelihood(test_vector);

description:

The SupportVectorModel class is used to compute distance of a vector from a hyperplane specified by support vector machine. The likelihood can be computed by the sigmoid transformation of the distance. The distance is defined as follows:
  where  
The interface provides access to several variants of the calculation, including a log likelihood measure.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: