squiggle.c/README.md

1.3 KiB

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

  • Add example for only one sample
  • Add example for many samples
  • [ ] Add a custom preprocessor to allow simple nested functions that don't rely on local scope?
  • Use gcc extension to define functions nested inside main.
  • Chain various mixture functions
  • Add beta distribution
  • [-] Use OpenMP for acceleration
  • Add function to get sample when given a cdf
  • Don't have a single header file.
  • Structure project a bit better