mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 16:59:27 +02:00
docs: getting started updated
This commit is contained in:
parent
24ef100197
commit
02a77f4924
1 changed files with 8 additions and 2 deletions
|
@ -15,11 +15,17 @@ import numpy as np
|
||||||
import pyerrors as pe
|
import pyerrors as pe
|
||||||
|
|
||||||
my_obs = pe.Obs([samples], ['ensemble_name'])
|
my_obs = pe.Obs([samples], ['ensemble_name'])
|
||||||
my_new_obs = 2 * np.log(my_obs) / my_obs
|
my_new_obs = 2 * np.log(my_obs) / my_obs ** 2
|
||||||
my_new_obs.gamma_method()
|
my_new_obs.gamma_method()
|
||||||
my_new_obs.details()
|
|
||||||
print(my_new_obs)
|
print(my_new_obs)
|
||||||
|
> 0.31498(72)
|
||||||
|
|
||||||
|
iamzero = my_new_obs - my_new_obs
|
||||||
|
iamzero.gamma_method()
|
||||||
|
print(iamzero)
|
||||||
|
> 0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
# The `Obs` class
|
# The `Obs` class
|
||||||
|
|
||||||
`pyerrors` introduces a new datatype, `Obs`, which simplifies error propagation and estimation for auto- and cross-correlated data.
|
`pyerrors` introduces a new datatype, `Obs`, which simplifies error propagation and estimation for auto- and cross-correlated data.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue