|
libak
0.4.0
|
Data Structures | |
| struct | akUniCharInitializer |
| Used in 'ak_init_uniform_char'. More... | |
Defines | |
| #define | ak_uni_char_initializer_free(UCI) (UCI)->meths->free ( UCI ) |
| Frees memory. | |
Functions | |
| akUniCharInitializer * | ak_uni_char_initializer_new (const akCModel *cmodel, char **err) |
| Gets an akUniCharInitializer. | |
| void | ak_init_uniform_char (akUniCharInitializer *uci, akCMiCounts *counts, const int c) |
| Initializes uniformly a character model. | |
| #define ak_uni_char_initializer_free | ( | UCI | ) | (UCI)->meths->free ( UCI ) |
Frees memory.
Frees the memory allocated for the uniform character initializer.
| UCI | The uniform character initializer. |
| void ak_init_uniform_char | ( | akUniCharInitializer * | uci, |
| akCMiCounts * | counts, | ||
| const int | c | ||
| ) |
Initializes uniformly a character model.
This function initializes the counts of the specified character in order to obtain a uniformly distributed model.
| uci | The uniform character initializer. |
| counts | Integer counts related to cmodel. |
| c | The index of the character to be initialized. |
| akUniCharInitializer* ak_uni_char_initializer_new | ( | const akCModel * | cmodel, |
| char ** | err | ||
| ) |
Gets an akUniCharInitializer.
This function creates auxiliary data used to uniformly initialize character models. Currently supported types are: Bernoulli and DGaussian.
| cmodel | The character models. |
| err | Pointer to string variable. If not NULL an error message is allocated in the variable in case of error. |
1.7.6.1