Functions

mcl.c File Reference

#include <stdlib.h>
#include <math.h>
#include "mcl_math.h"
#include <string.h>
#include "mcl.h"
Include dependency graph for mcl.c:

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.

Function Documentation

void mcl_done ( struct mcl_model mcl  ) 

Deallocates memory allocated by mcl_init().

Parameters:
mcl MCL model structure.

Here is the caller graph for this function:

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.

Parameters:
mcl MCL model structure
part_size Size of one particle
count The number of particles

Here is the caller graph for this function:

void mcl_normalize ( struct mcl_model mcl  ) 

Normalize the particle weights.

Parameters:
mcl the MCL model