The Complete SPRLIB & ANNLIB

check_units

- check if the units in a network are valid (LOCAL)

SYNOPSIS

int check_units (net)

ARGUMENTS

NET *net A pointer to a NET structure.

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This function checks, for all units in net, if the fields of the UNIT structure have valid values. Checks include: LayerId should be 0 or positive; InOutIndex should be 0 or positive; UnitName should not be an empty string; Theta.Next should not be NULL; ActFunc, TransFunc and DerTransFunc should not be NULL for non-input units; NumInLinks and NumOutLinks should be positive for non-input units; and InLinks and OutLinks should not be NULL for non-input units. Finally, the total number of units, input units and output units is counted and compared to the net fields NumUnits, NumInputs and NumOutputs.

NOTE

This function is used by check_all_network.

SEE ALSO

check_net, check_links, check_weights, check_conn_to_input, check_conn_to_output, check_io_conn , check_incr_ids, check_decr_ids, check_order_ids, check_ff_net , check_all_network

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