Commit Graph

28 Commits

Author SHA1 Message Date
leo
e8f8b21f89
add mutCorrelationUY as well 2023-02-25 14:29:55 +01:00
leo
5694011822
mv file reading operations to data.go 2023-02-25 14:13:56 +01:00
leo
b81c38dae4
add MutCorrelate func, get mutual correlation 2023-02-25 14:08:38 +01:00
leo
d7f4db9205
run: use non-math-pow autocorrelation func (fastR) 2023-02-25 13:50:28 +01:00
leo
8dc432a14b
stats_test.go: fix TestAutocorrelate 2023-02-25 13:46:15 +01:00
leo
37f15b9fa6
fix autocorrelation: convert divisor to float64
both for Autocorrelate and AutocorrelateMP, even though for the latter
the change only covers converting the divisor expression as a whole,
instead of individual elements separately.
2023-02-25 13:40:16 +01:00
leo
4bf633dc5b
calculate autocorrelation for u,y 2023-02-25 13:23:47 +01:00
leo
cc8ede3772
stats: correct slices init 2023-02-25 13:20:57 +01:00
leo
01cdd03dac
p2: implement file reading+basic data operations
also, update .pre-commit-config.yaml to:
* first change to ./p2, then run the tests (pre-commit deliberately does
  not allow this by design [1])
* for the above, the https://github.com/dnephin/pre-commit-golang repo
  had to be dropped as it does not allow any customisation either.

also, add some flake updates (would be better split into another commit,
I know):
* use baseurl var
* add statix to shell packages
* fix building p1

refs:
[1]: https://github.com/pre-commit/pre-commit/issues/1110
2023-02-24 23:50:13 +01:00
leo
faa5c6c82e
add .golangci-lint 2023-01-28 19:30:33 +01:00
leo
8de860a22a
add .pre-commit-config.yaml 2023-01-28 19:24:26 +01:00
leo
95afeb6815
flake: add p2 2023-01-28 19:22:31 +01:00
leo
28e9f9469c
update .gitattributes 2023-01-28 19:04:09 +01:00
leo
cce04d56e3
chore: bootstrap p2 2023-01-28 19:00:52 +01:00
leo
28d166e8e3
bump p1 to v0.0.1 2023-01-28 18:56:54 +01:00
leo
c96cac3772
add .vscode settings 2023-01-27 01:57:20 +01:00
leo
25f2fbc831
py,matlab: rework funcs, add correct Simulink data
* create a proper p1.mat project
* create a proper Simulink p1.slx
* add new and correct Simulink simulation output data, previous Simulink data was garbage
* save re-generated pictures with fresh Simulink data in data/m.csv and
  reworked python functions (there were errors in the implementation)
* standardise picture naming to one that makes more sense
2023-01-27 01:48:36 +01:00
b79ed267ca
chore: add updated graphs 2022-11-17 22:00:32 +01:00
18e0b59d2e
chore: polish print statements 2022-11-17 21:58:15 +01:00
641eec0846
chore: clarify what the print statements print 2022-11-17 21:56:58 +01:00
a012342c1d
fix: correctly name correlation coefficient 2022-11-17 21:54:52 +01:00
b7ecd6a7b7
fix: correct data header 2022-11-17 21:50:07 +01:00
516e6375a4
flake: add scipy as it's a required dependency 2022-11-13 20:10:45 +01:00
2828f91dc2
add README.md 2022-11-03 21:35:33 +01:00
120a0f0e7f
flake: update shell packages 2022-11-03 21:34:41 +01:00
5901ce9c38
p1: add output images 2022-11-03 21:30:27 +01:00
c3a661312a
p1: add data+matlab/simulink files 2022-11-03 21:29:53 +01:00
5cf892c7ea
initial commit 2022-11-03 21:18:55 +01:00