diff --git a/examples/04_sample_from_cdf/example b/examples/04_sample_from_cdf/example new file mode 100755 index 0000000..03e23d9 Binary files /dev/null and b/examples/04_sample_from_cdf/example differ diff --git a/scratchpad/scratchpad.c b/examples/04_sample_from_cdf/example.c similarity index 99% rename from scratchpad/scratchpad.c rename to examples/04_sample_from_cdf/example.c index a7a6506..c99986b 100644 --- a/scratchpad/scratchpad.c +++ b/examples/04_sample_from_cdf/example.c @@ -3,7 +3,7 @@ #include #include #include -#include "../squiggle.h" +#include "../../squiggle.h" #define NUM_SAMPLES 1000000 #define STOP_BETA 1.0e-8 diff --git a/scratchpad/makefile b/examples/04_sample_from_cdf/makefile similarity index 89% rename from scratchpad/makefile rename to examples/04_sample_from_cdf/makefile index fb1f8b2..69adb6d 100644 --- a/scratchpad/makefile +++ b/examples/04_sample_from_cdf/makefile @@ -9,8 +9,8 @@ CC=gcc # required for nested functions # CC=tcc # <= faster compilation # Main file -SRC=scratchpad.c ../squiggle.c -OUTPUT=./scratchpad +SRC=example.c ../../squiggle.c +OUTPUT=./example ## Dependencies MATH=-lm @@ -31,7 +31,7 @@ FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) ## make build build: $(SRC) - # gcc -std=gnu99 scratchpad.c -lm -o scratchpad + # gcc -std=gnu99 example.c -lm -o example $(CC) $(CFLAGS) $(SRC) $(DEPENDENCIES) -o $(OUTPUT) format: $(SRC) diff --git a/scratchpad/scratchpad b/scratchpad/scratchpad deleted file mode 100755 index a689f5e..0000000 Binary files a/scratchpad/scratchpad and /dev/null differ