document cool command line options and linux integrations
This commit is contained in:
parent
07f0fd1d3f
commit
254b9068af
27
README.md
27
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user