squiggle.c/README.md

39 lines
1.3 KiB
Markdown
Raw Normal View History

2023-07-16 19:52:24 +00:00
# Squiggle.c
## Why C?
- Because it is fast
- Because it can be made faster if need be, e.g., with a multi-threading library like OpenMP
- Because if you can implement something in C, you can implement it anywhere else
- Because it will last long
- Because the language is honest
- Because I enjoy it
## To do list
- [ ] Have some more complicated & realistic example
- [ ] Add summarization functions, like mean, std, 90% ci (or all c.i.?)
- [ ] Add README
- Schema: a function which takes a sample and manipulates it,
- and at the end, an array of samples.
- Explain boxes
- Explain individual examples
- Explain nested functions
- [ ] Publish online
## Done
- [x] Add example for only one sample
- [x] Add example for many samples
- ~~[ ] Add a custom preprocessor to allow simple nested functions that don't rely on local scope?~~
- [x] Use gcc extension to define functions nested inside main.
- [x] Chain various mixture functions
- [x] Add beta distribution
- See <https://stats.stackexchange.com/questions/502146/how-does-numpy-generate-samples-from-a-beta-distribution> for a faster method.
- ~~[-] Use OpenMP for acceleration~~
- [x] Add function to get sample when given a cdf
- [x] Don't have a single header file.
- [x] Structure project a bit better