| INGOR
    | 
Utility functions for networks. More...
#include <net/ytNetUtils.h>
| Public Member Functions | |
| int | ytNetUtils_checkConsistency (const ytNetwork *network, const ytData *data, const char *name) | 
| Checks if the nodes in the network are consistent with given ytData instance. | |
| void | ytNetUtils_countParentType (const ytData *data, int j, const int *parents, int q, int *nc, int *nd) | 
| Counts the maximum numbers of type specific parents for a single node. | |
| void | ytNetUtils_countParentTypes (const ytNetwork *network, const ytData *data, int *mp, int *mc, int *md) | 
| Counts the maximum numbers of type specific parents in a network. | |
| void | ytNetUtils_countParentTypes2 (const ytNetwork *network, const ytData *data, const int *rmap, int *mp, int *mc, int *md) | 
| Counts the maximum numbers of types of parents in a network with the node map. | |
| int | ytNetUtils_dataToNetMap (const ytData *data, const ytNetwork *network, int *map) | 
| Sets a map of indices from the data to the network. | |
| int | ytNetUtils_netToDataMap (const ytNetwork *network, const ytData *data, int *map) | 
| Sets a map of indices from the network to the data. | |
Utility functions for networks.
| int ytNetUtils_checkConsistency | ( | const ytNetwork * | network, | 
| const ytData * | data, | ||
| const char * | name | ||
| ) | 
Checks if the nodes in the network are consistent with given ytData instance.
| name | module name for error output. NULL acceptable. | 
| void ytNetUtils_countParentTypes | ( | const ytNetwork * | network, | 
| const ytData * | data, | ||
| int * | mp, | ||
| int * | mc, | ||
| int * | md | ||
| ) | 
Counts the maximum numbers of type specific parents in a network.
| [out] | mp | The maximum number of parents. | 
| void ytNetUtils_countParentTypes2 | ( | const ytNetwork * | network, | 
| const ytData * | data, | ||
| const int * | rmap, | ||
| int * | mp, | ||
| int * | mc, | ||
| int * | md | ||
| ) | 
Counts the maximum numbers of types of parents in a network with the node map.
| rmap | index map from network to data. | |
| [out] | mp | |
| [out] | mc | |
| [out] | md | 
Sets a map of indices from the data to the network.
| data | |
| network | 
Sets a map of indices from the network to the data.