The Complete SPRLIB & ANNLIB

fprintf_unit

- save a unit part of a network file (LOCAL)

SYNOPSIS

int fprintf_unit (stream, unit, option)

ARGUMENTS

FILE *stream A valid file pointer.
UNIT *unit A pointer to a correct UNIT structure.
long option An option parameter of type HIST-flags, indicating whether or not the unit's history should be saved.

RETURNS

TRUE if an error occurred, FALSE otherwise.

FUNCTION

This function is called by fprintf_network to write all unit parts of a network file, i.e. the part between UNITBEGIN and UNITEND. See NET-IO-format for the layout of this part.

NOTE

This function also writes the complete history of UNIT values. It uses the fprintf_function_keyword to write the activation and transfer function and their possible parameters. It also calls the fprintf_link function to write the incoming and outgoing links. Finally, it calls fprintf_weight to write the bias (theta) and its history.

SEE ALSO

fprintf_network

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