#include <stdlib.h>#include <math.h>#include "mcl_math.h"#include <string.h>#include "mcl.h"
Functions | |
| void | mcl_init (struct mcl_model *mcl, unsigned count, void *estimated) |
| IMPLEMENTATION OF THE GENERIC PART OF MONTE CARLO ALGORITHM. | |
| void | mcl_done (struct mcl_model *mcl) |
| Deallocates memory allocated by mcl_init(). | |
| void | mcl_normalize (struct mcl_model *mcl) |
| Normalize the particle weights. | |
| void mcl_done | ( | struct mcl_model * | mcl | ) |
Deallocates memory allocated by mcl_init().
| mcl | MCL model structure. |

| void mcl_init | ( | struct mcl_model * | mcl, | |
| unsigned | count, | |||
| void * | estimated | |||
| ) |
IMPLEMENTATION OF THE GENERIC PART OF MONTE CARLO ALGORITHM.
FUNCTION PROTOTYPES.
Initializes mcl_model and allocates neccessary memory. Should be called from implementation init function.
| mcl | MCL model structure | |
| part_size | Size of one particle | |
| count | The number of particles |

| void mcl_normalize | ( | struct mcl_model * | mcl | ) |
Normalize the particle weights.
| mcl | the MCL model |
1.7.1