|
Files |
file | lwpr.h |
| Main header file of the LWPR library.
|
file | lwpr_aux.h |
| LWPR auxiliary functions header file.
|
file | lwpr_binio.h |
| Prototypes for binary-IO related LWPR subroutines.
|
file | lwpr_math.h |
| Prototypes for some rather simple vector and matrix operations.
|
file | lwpr_mem.h |
| Prototypes for auxiliary LWPR routines that handle memory allocation and disposition.
|
file | lwpr_xml.h |
| Prototypes for XML related LWPR subroutines.
|
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 | HAVE_LIBEXPAT 0 |
#define | NUM_THREADS 1 |
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_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.
|
int | lwpr_write_binary (const LWPR_Model *model, const char *filename) |
| Writes an LWPR model to a file.
|
int | lwpr_read_binary (LWPR_Model *model, const char *filename) |
| Reads an LWPR model from a binary file.
|
int | lwpr_write_binary_fp (const LWPR_Model *model, FILE *fp) |
| Writes an LWPR model to a file.
|
int | lwpr_read_binary_fp (LWPR_Model *model, FILE *fp) |
| Reads an LWPR model from a binary file.
|
int | lwpr_write_xml (const LWPR_Model *model, const char *filename) |
| Writes an LWPR model to an XML file.
|
void | lwpr_write_xml_fp (const LWPR_Model *model, FILE *fp) |
| Writes an LWPR model to an XML file.
|
int | lwpr_read_xml (LWPR_Model *model, const char *filename, int *numWarnings) |
| Parse an LWPR model from an XML file.
|