#include <SvmData.h>
Inheritance diagram for SvmData:
Public Methods | |
SvmData (int hyperplanedim_in, int nobservations_in, double penalty) | |
SvmData (int hyperplanedim_in, int nobservations_in, double *X, double *d, double penalty) | |
~SvmData () | |
virtual void | YMult (double beta, SimpleVector &y, double alpha, SimpleVector &x) |
virtual void | YTransMult (double beta, SimpleVector &y, double alpha, SimpleVector &x) |
virtual double | dotCategories (SimpleVector &v) |
virtual double | datanorm () |
virtual void | print () |
Static Public Methods | |
SvmData * | textInput (char filename[], double penalty, int &iErr) |
Public Attributes | |
double | mPenalty |
int | hyperplanedim |
int | nobservations |
DenseGenMatrixHandle | Yt |
SimpleVectorHandle | categories |
|
Constructor that makes object with specified dimensions
|
|
Constructor that makes object with specified dimensions, using storage already allocated
|
|
Destructor for data class |
|
compute the norm of the problem data Implements Data. |
|
form inner product of v with the categories vector |
|
print the problem data Implements Data. |
|
Reads Svm data from given input file
|
|
Perform a saxpy operation with matrix Y y <- beta y + alpha Yx |
|
Perform a saxpy operation with matrix Yt y <- beta y + alpha Y^T x |
|
vector of dimension nobservations containing the labels of the points |
|
dimension of Euclidean space in which each observation resides |
|
penalty parameter for violation term in objective |
|
number of observations |
|
Y is an N x (t+1) matrix in which each row consists of t entries representing a point, followed by a "1". Each row corresponding to one of the two distinct labels is then multiplied by -1. Yt stores the the transpose of Y. |