INGOR
|
Compiling bootstrapped networks. More...
#include <net/ytBS.h>
Public Member Functions | |
ytBS * | ytBS_new (int nodes) |
Generates a new ytBS instance. | |
void | ytBS_setNetwork (ytBS *this, ytNetwork *network) |
ytStrArray * | ytBS_generateFiles (const char *prefix, const char *suffix, int digits, int bg, int ed) |
Generates the file names to be processed. | |
ytNetwork * | ytBS_firstNetwork (ytStrArray *fileNames, ytKeyValues *args, ytIO_reader reader) |
Reads the first network. | |
int | ytBS_processFiles (ytBS *this, ytIO_reader reader, ytStrArray *files, ytKeyValues *fileArgs, const char *freqKey, const char *totalKey) |
Processes network files. | |
ytNetwork * | ytBS_compile (ytBS *this, double th, int total, int cmp, int dynamic) |
Compiles processed networks. | |
Compiling bootstrapped networks.
ytStrArray * ytBS_generateFiles | ( | const char * | prefix, |
const char * | suffix, | ||
int | digits, | ||
int | bg, | ||
int | ed | ||
) |
Generates the file names to be processed.
This routine simply generates a set of file names to be processed from the file prefix and numbering information such as the number of suffix digits, the initial number and the last number.
The generated file names are returned as a string array (ytStrArray), and can be used as an input for ytBS_firstNetwork() and ytBS_processFiles().
prefix | File prefix |
suffix | |
digits | The number of digits of the suffix. |
bg | |
ed |