mirror of
https://github.com/dnlbauer/WHAM.git
synced 2026-09-11 06:35:30 +00:00
version up
This commit is contained in:
@@ -70,13 +70,13 @@ mod tests {
|
||||
let timeseries = read_timeseries("example/1d_cyclic/COLVAR-2.5.xvg");
|
||||
let autocorr = super::autocorrelation(×eries);
|
||||
let expected = [
|
||||
0.6919008655979143, 0.5331719399671355,
|
||||
0.20472620956463589, -0.002850876458920514,
|
||||
-0.13842850077938146, -0.2652923552973232,
|
||||
-0.31427198272235385, -0.2617505151557693,
|
||||
-0.20594864730290338, -0.13310019091811812,
|
||||
-0.1887568901193426, -0.1944936625424933,
|
||||
-0.1963599673189461, -0.11391587833838003];
|
||||
0.691_900_865_597_914_3, 0.533_171_939_967_135_5,
|
||||
0.204_726_209_564_635_89, -0.002_850_876_458_920_514,
|
||||
-0.138_428_500_779_381_46, -0.265_292_355_297_323_2,
|
||||
-0.314_271_982_722_353_85, -0.261_750_515_155_769_3,
|
||||
-0.205_948_647_302_903_38, -0.133_100_190_918_118_12,
|
||||
-0.188_756_890_119_342_6, -0.194_493_662_542_493_3,
|
||||
-0.196_359_967_318_946_1, -0.113_915_878_338_380_03];
|
||||
for (actual, expected) in autocorr.iter().zip(expected.iter()) {
|
||||
assert!((actual-expected).abs() < 0.001);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user