SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
CGNPPLib Class Reference

Detailed Description

class GNPPLib, a Library of solvers for Generalized Nearest Point Problem (GNPP).

Definition at line 31 of file GNPPLib.h.

Inheritance diagram for CGNPPLib:
Inheritance graph
[legend]

Public Member Functions

 CGNPPLib ()
 CGNPPLib (float64_t *vector_y, CKernel *kernel, int32_t num_data, float64_t reg_const)
virtual ~CGNPPLib ()
int8_t gnpp_mdm (float64_t *diag_H, float64_t *vector_c, float64_t *vector_y, int32_t dim, int32_t tmax, float64_t tolabs, float64_t tolrel, float64_t th, float64_t *alpha, int32_t *ptr_t, float64_t *ptr_aHa11, float64_t *ptr_aHa22, float64_t **ptr_History, int32_t verb)
int8_t gnpp_imdm (float64_t *diag_H, float64_t *vector_c, float64_t *vector_y, int32_t dim, int32_t tmax, float64_t tolabs, float64_t tolrel, float64_t th, float64_t *alpha, int32_t *ptr_t, float64_t *ptr_aHa11, float64_t *ptr_aHa22, float64_t **ptr_History, int32_t verb)
virtual const char * get_name () const
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Protected Member Functions

float64_tget_col (int64_t a, int64_t b)
- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)

Protected Attributes

float64_t ** kernel_columns
float64_tcache_index
int32_t first_kernel_inx
int64_t Cache_Size
int32_t m_num_data
float64_t m_reg_const
float64_tm_vector_y
CKernelm_kernel

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters

Constructor & Destructor Documentation

CGNPPLib ( )

default constructor

Definition at line 33 of file GNPPLib.cpp.

CGNPPLib ( float64_t vector_y,
CKernel kernel,
int32_t  num_data,
float64_t  reg_const 
)

constructor

Parameters
vector_yvector y
kernelkernel
num_datanumber of data
reg_constreg const

Definition at line 47 of file GNPPLib.cpp.

~CGNPPLib ( )
virtual

Definition at line 75 of file GNPPLib.cpp.

Member Function Documentation

float64_t * get_col ( int64_t  a,
int64_t  b 
)
protected

get col

Parameters
aa
bb
Returns
something floaty

Definition at line 685 of file GNPPLib.cpp.

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 90 of file GNPPLib.h.

int8_t gnpp_imdm ( float64_t diag_H,
float64_t vector_c,
float64_t vector_y,
int32_t  dim,
int32_t  tmax,
float64_t  tolabs,
float64_t  tolrel,
float64_t  th,
float64_t alpha,
int32_t *  ptr_t,
float64_t ptr_aHa11,
float64_t ptr_aHa22,
float64_t **  ptr_History,
int32_t  verb 
)

QP solver based on improved MDM algorithm (u fixed v optimized)

Usage: exitflag = gnpp_imdm( diag_H, vector_c, vector_y,

dim, tmax, tolabs, tolrel, th, &alpha, &t, &aHa11, &aHa22, &History );

Definition at line 355 of file GNPPLib.cpp.

int8_t gnpp_mdm ( float64_t diag_H,
float64_t vector_c,
float64_t vector_y,
int32_t  dim,
int32_t  tmax,
float64_t  tolabs,
float64_t  tolrel,
float64_t  th,
float64_t alpha,
int32_t *  ptr_t,
float64_t ptr_aHa11,
float64_t ptr_aHa22,
float64_t **  ptr_History,
int32_t  verb 
)

QP solver based on MDM algorithm.

Usage: exitflag = gnpp_mdm(diag_H, vector_c, vector_y,

dim, tmax, tolabs, tolrel, th, &alpha, &t, &aHa11, &aHa22, &History );

Definition at line 90 of file GNPPLib.cpp.

Member Data Documentation

float64_t* cache_index
protected

cache index

Definition at line 104 of file GNPPLib.h.

int64_t Cache_Size
protected

cache size

Definition at line 108 of file GNPPLib.h.

int32_t first_kernel_inx
protected

first kernel inx

Definition at line 106 of file GNPPLib.h.

float64_t** kernel_columns
protected

kernel columns

Definition at line 102 of file GNPPLib.h.

CKernel* m_kernel
protected

kernel

Definition at line 116 of file GNPPLib.h.

int32_t m_num_data
protected

num data

Definition at line 110 of file GNPPLib.h.

float64_t m_reg_const
protected

reg const

Definition at line 112 of file GNPPLib.h.

float64_t* m_vector_y
protected

vector y

Definition at line 114 of file GNPPLib.h.


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

SHOGUN Machine Learning Toolbox - Documentation