2023-01-28 19:00:52 +01:00
|
|
|
# p2
|
|
|
|
|
|
|
|
this is a Go subproject containing code for task no. 2.
|
2023-02-25 23:52:51 +01:00
|
|
|
Python is used for visualisation.
|
2023-02-24 23:50:13 +01:00
|
|
|
|
|
|
|
### compile
|
|
|
|
```sh
|
|
|
|
go build -v .
|
|
|
|
```
|
|
|
|
|
|
|
|
### run
|
2023-02-26 21:26:58 +01:00
|
|
|
to compute correlations, impulse function:
|
2023-02-24 23:50:13 +01:00
|
|
|
```sh
|
|
|
|
# pass a csv data file.
|
|
|
|
./p2 -datafile=./data/m.csv
|
|
|
|
```
|
2023-02-26 21:26:58 +01:00
|
|
|
|
|
|
|
to visualise the computed data:
|
|
|
|
```sh
|
|
|
|
python visualise.py
|
|
|
|
```
|
2023-02-27 04:27:46 +01:00
|
|
|
|
|
|
|
alternatively, from current folder you could do both of the above in a single
|
|
|
|
step:
|
|
|
|
```diff
|
|
|
|
# compute stuff and visualise.
|
|
|
|
-./p2 -datafile=./data/m.csv
|
|
|
|
+./p2 -datafile=./data/m.csv -vis
|
|
|
|
```
|