document cool command line options and linux integrations

This commit is contained in:
NunoSempere 2024-07-12 18:32:24 -04:00
parent 07f0fd1d3f
commit 254b9068af

View File

@ -90,41 +90,44 @@ help
exit 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 1000000
$ fermi -n 1_000_000 $ fermi -n 1_000_000
``` ```
## Tips & tricks You also run a file with the -f option
- 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
```
$ fermi -f more/piano-tuners.fermi
```
### Integrations with linux utilities ### 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 You can make a model an executable file by running `$ chmod -x model.fermi` and then adding the following at the top!
...which means a model an executable file by adding the following at the top!
``` ```
#!/bin/usr/fermi -f #!/bin/usr/fermi -f
``` ```
You can save a session to a logfile with tee: You can save a session to a logfile with tee:
``` ```
fermi | tee -a fermi.log fermi | tee -a fermi.log
``` ```
## Different levels of complexity ## Different levels of complexity