libavutil/lfg.c File Reference

#include <inttypes.h>
#include "lfg.h"
#include "md5.h"
#include "intreadwrite.h"
#include "attributes.h"

Go to the source code of this file.

Functions

void av_cold av_lfg_init (AVLFG *c, unsigned int seed)
void av_bmg_get (AVLFG *lfg, double out[2])
 Gets the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.


Function Documentation

void av_bmg_get ( AVLFG lfg,
double  out[2] 
)

Gets the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.

Parameters:
out[2] array where are placed the two generated numbers

Definition at line 43 of file lfg.c.

void av_cold av_lfg_init ( AVLFG c,
unsigned int  seed 
)


Generated on Fri Oct 26 02:36:55 2012 for FFmpeg by  doxygen 1.5.8