The Complete SPRLIB & ANNLIB

malloc_lspace

- allocate space for learning samples (LOCAL)

SYNOPSIS

int malloc_lspace (nin, nout, nlearn)

ARGUMENTS

int nin The dimensionality of the input patterns.
int nout The dimensionality of the output patterns.
int nlearn The number of learning samples.

RETURNS

The function returns TRUE if an error occured, and FALSE otherwise.

FUNCTION

This function allocates space for the learning data which is used to train a perceptron. The function receives as input the dimensionality of the input nin, which is stored in the local variable ninputs, and the dimensionality of the ouput nout, which is stored in the local variable noutputs. Furthermore, it receives the number of learning samples nlset. As a side effect the function allocates space for the learning samples in the local variable learnset, which points to the array containing the samples.

NOTE

If no error occurred the 4 local variables are initialized properly.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998