The Complete SPRLIB & ANNLIB

check_net

- check if the contents of a NET structure are valid (LOCAL)

SYNOPSIS

int check_net (net)

ARGUMENTS

NET *net A pointer to a NET structure.

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This function checks if the fields of the NET structure have valid values. Checks include: NetId should not be zero; NumInputs should be positive but smaller than NumUnits; NumOutputs should be positive but smaller than NumUnits; NumUnits should be positive; NumLayers should be positive but smaller than NumUnits; NumLinks should be positive but smaller than 2 * NumUnits ^2; NumWeights should be positive; and FirstUnit, LastUnit and FirstWeight should not be NULL.

NOTE

This function is used by check_all_network.

SEE ALSO

check_units, 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