formatting pass.

This commit is contained in:
NunoSempere 2023-07-16 21:37:43 +02:00
parent 7a2015e3e0
commit f5af776eb3
4 changed files with 5 additions and 7 deletions

View File

@ -1,9 +1,9 @@
#include "../../squiggle.h"
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "../../squiggle.h"
#define NUM_SAMPLES 1000000

View File

@ -1,9 +1,9 @@
#include "../../squiggle.h"
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "../../squiggle.h"
#define NUM_SAMPLES 1000000
#define STOP_BETA 1.0e-8

View File

@ -1,11 +1,10 @@
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <limits.h>
#include <time.h>
// #include <sys/types.h>
#define EXIT_ON_ERROR 0
#define MAX_ERROR_LENGTH 500
#define PROCESS_ERROR(...) \
@ -132,7 +131,7 @@ float mixture(float (*samplers[])(uint32_t*), float* weights, int n_dists, uint3
return result;
}
// Sample from an arbitrary cdf
// Sample from an arbitrary cdf
struct box {
int empty;
float content;

View File

@ -55,4 +55,3 @@ struct box sampler_box_cdf(struct box cdf(float), uint32_t* seed);
struct box sampler_float_cdf(float cdf(float), uint32_t* seed);
#endif