mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Documentation extended
This commit is contained in:
parent
70240c71aa
commit
bb7935b870
1 changed files with 59 additions and 0 deletions
|
@ -1,3 +1,62 @@
|
|||
r'''
|
||||
# What is pyerrors?
|
||||
`pyerrors` is a python package for error computation and propagation of Markov chain Monte Carlo data.
|
||||
|
||||
## Getting started
|
||||
|
||||
```python
|
||||
import numpy as np
|
||||
import pyerrors as pe
|
||||
|
||||
my_obs = pe.Obs([samples], ['ensemble_name'])
|
||||
my_new_obs = 2 * np.log(my_obs) / my_obs
|
||||
my_new_obs.gamma_method()
|
||||
my_new_obs.details()
|
||||
print(my_new_obs)
|
||||
```
|
||||
# The `Obs` class
|
||||
`pyerrors.obs.Obs`
|
||||
```python
|
||||
import pyerrors as pe
|
||||
|
||||
my_obs = pe.Obs([samples], ['ensemble_name'])
|
||||
```
|
||||
|
||||
## Multiple ensembles/replica
|
||||
|
||||
## Irregular Monte Carlo chains
|
||||
|
||||
# Error propagation
|
||||
Automatic differentiation, cite Alberto,
|
||||
|
||||
numpy overloaded
|
||||
```python
|
||||
import numpy as np
|
||||
import pyerrors as pe
|
||||
|
||||
my_obs = pe.Obs([samples], ['ensemble_name'])
|
||||
my_new_obs = 2 * np.log(my_obs) / my_obs
|
||||
my_new_obs.gamma_method()
|
||||
my_new_obs.details()
|
||||
```
|
||||
|
||||
# Error estimation
|
||||
`pyerrors.obs.Obs.gamma_method`
|
||||
|
||||
$\delta_i\delta_j$
|
||||
|
||||
## Exponential tails
|
||||
|
||||
## Covariance
|
||||
|
||||
# Optimization / fits / roots
|
||||
|
||||
# Complex observables
|
||||
|
||||
# Matrix operations
|
||||
|
||||
# Input
|
||||
'''
|
||||
from .obs import *
|
||||
from .correlators import *
|
||||
from .fits import *
|
||||
|
|
Loading…
Add table
Reference in a new issue