include/lwpr.h File Reference

Main header file of the LWPR library. More...

#include <lwpr_config.h>

Go to the source code of this file.

Data Structures

struct  LWPR_ReceptiveField
 This structure completely describes a "receptive field" (a local linear model). More...
struct  LWPR_SubModel
 The structure LWPR_SubModel holds all the receptive fields (LWPR_ReceptiveField) that contribute to a particular output dimension of the complete LWPR_Model. More...
struct  LWPR_Model
 Main data structure for describing an LWPR model. More...

Defines

#define LWPR_REGSTORE   2
#define LWPR_REGINCR   2

Typedefs

typedef struct LWPR_Model LWPR_Model
 Main data structure for describing an LWPR model.

Enumerations

enum  LWPR_Kernel { LWPR_GAUSSIAN_KERNEL, LWPR_BISQUARE_KERNEL }

Functions

void lwpr_predict (const LWPR_Model *model, const double *x, double cutoff, double *y, double *conf, double *max_w)
 Computes the prediction of an LWPR model given an input vector x. Can also return confidence bounds and the maximal activation of all receptive fields.
void lwpr_predict_J (const LWPR_Model *model, const double *x, double cutoff, double *y, double *J)
 Computes the prediction and its derivatives (Jacobian) of an LWPR model given an input vector x.
void lwpr_predict_JcJ (const LWPR_Model *model, const double *x, double cutoff, double *y, double *J, double *conf, double *Jconf)
 Computes the predictions, the confidence intervals and the first derivatives of all the quantities.
void lwpr_predict_JH (const LWPR_Model *model, const double *x, double cutoff, double *y, double *J, double *H)
 Computes the prediction and its first and second derivatives of an LWPR model given an input vector x.
int lwpr_update (LWPR_Model *model, const double *x, const double *y, double *yp, double *max_w)
 Updates an LWPR model with a given input/output pair (x,y). Optionally returns the model's prediction for y and the maximal activation of all receptive fields.
int lwpr_init_model (LWPR_Model *model, int nIn, int nOut, const char *name)
 Initialises an LWPR model and allocates internally used storage for submodels etc.
void lwpr_free_model (LWPR_Model *model)
 Cleans up the LWPR_Model structure by disposing all internally allocated memory. Make sure you always call this function if you do not need the model anymore.
int lwpr_set_init_alpha (LWPR_Model *model, double alpha)
 Set the initial learning rate for 2nd order distance metric updates.
int lwpr_set_init_D_spherical (LWPR_Model *model, double sigma)
 Set a spherical initial distance metric for creating new receptive fields.
int lwpr_set_init_D_diagonal (LWPR_Model *model, const double *d)
 Set a diagonal initial distance metric for creating new receptive fields.
int lwpr_set_init_D (LWPR_Model *model, const double *D, int stride)
 Set initial distance metric for creating new receptive fields.
int lwpr_duplicate_model (LWPR_Model *dest, const LWPR_Model *src)
 Creates a duplicate (deep copy) of an LWPR model structure.

Detailed Description

Main header file of the LWPR library.


Define Documentation

#define LWPR_REGINCR   2

When adding a PLS regression direction requires a re-allocation, this constant determines how much storage is added

#define LWPR_REGSTORE   2

LWPR_REGSTORE is the default storage size for PLS regression directions

Generated on Thu Feb 9 08:18:35 2012 for LWPR Library by  doxygen 1.6.3