From 254b9068af5df4b66d58e423acb7ce5f6968ace0 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 12 Jul 2024 18:32:24 -0400 Subject: [PATCH] document cool command line options and linux integrations --- README.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2f2181e..6aa490b 100644 --- a/README.md +++ b/README.md @@ -90,41 +90,44 @@ help exit ``` -You can also specify the number of samples to draw when algebraic manipulations are not sufficient: +## Tips & tricks + +- It's conceptually clearer to have all the multiplications first and then all the divisions +- For things between 0 and 1, consider using a beta distribution + +### Command line options + +You can specify the number of samples to draw when algebraic manipulations are not sufficient: ``` $ fermi -n 1000000 $ fermi -n 1_000_000 ``` -## Tips & tricks - -- It's conceptually clearer to have all the multiplications first and then all the divisions -- For things between 0 and 1, consider using a beta distribution +You also run a file with the -f option +``` +$ fermi -f more/piano-tuners.fermi +``` ### Integrations with linux utilities -Because the model reads from standard input, you can pipe a model to it: +Because the model reads from standard input, you can a model to it: ``` -$ cat more/piano-tuners.f | fermi +$ cat more/piano-tuners.fermi | fermi ``` -You can also - -...which means a model an executable file by adding the following at the top! +You can make a model an executable file by running `$ chmod -x model.fermi` and then adding the following at the top! ``` #!/bin/usr/fermi -f ``` - You can save a session to a logfile with tee: ``` fermi | tee -a fermi.log - ``` ## Different levels of complexity