30 for (j = 0; j < 10000; j++) {
32 for (i = 0; i < 624; i++) {
44 double samp_mean = 0.0, samp_stddev = 0.0;
49 for (i = 0; i < 1000; i += 2) {
52 samp0 = bmg_out[0] * stddev + mean;
53 samp1 = bmg_out[1] * stddev + mean;
54 samp_mean += samp0 + samp1;
55 samp_stddev += samp0 * samp0 + samp1 * samp1;
64 samp_stddev -= (1000.0/999.0)*samp_mean*samp_mean;
65 samp_stddev = sqrt(samp_stddev);
70 samp_mean, mean, samp_stddev, stddev);
void av_bmg_get(AVLFG *lfg, double out[2])
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued...
high precision timer, useful to profile code
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_LOG_INFO
Standard information.
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)