formatting pass.
This commit is contained in:
parent
7a2015e3e0
commit
f5af776eb3
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user