The Complete SPRLIB & ANNLIB

print_c_header

- write all global settings (constants, include files) to a C file (LOCAL)

SYNOPSIS

int print_c_header (stream, input, hunits, outputs)

ARGUMENTS

FILE *stream A valid filepointer.
int input The number of input units of the network to be written.
int hunits The number of hidden units of the network to be written.
int outputs The number of output units of the network to be written.

RETURNS

FALSE if successful, TRUE if not.

FUNCTION

This function is used by make_source_ffnet to write the header of the C file which is constructed from a network. The files stdio.h and math.h are included, and the NR_INPUTS, NR_HUNITS and NR_OUTPUTS constants are defined using the last three parameters.

SEE ALSO

make_source_ffnet, printfile, print_inweights, print_outweights, print_c_code

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