Skip to content

Commit 7a545f0

Browse files
committed
A bit more info in the README
1 parent 36d64dc commit 7a545f0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# Geostatistics
22
Code containing various geostatistical tools that are useful for PET.
3+
4+
## Installation
5+
Clone repository and install with pip:
6+
7+
```sh
8+
pip install -e .
9+
```
10+
## Examples
11+
```python
12+
from geostat.decomp import Cholesky
13+
import numpy as np
14+
15+
stat = Cholesky()
16+
nx = 3
17+
mean = np.array([1., 2., 3.])
18+
var = np.array([10., 20., 30.])
19+
ne = 2
20+
cov = stat.gen_cov2d(x_size=nx, y_size=1, variance=var,
21+
var_range=1., aspect=1., angle=0., var_type='sph')
22+
sample = stat.gen_real(mean, cov, ne)
23+
```

0 commit comments

Comments
 (0)