diff options
Diffstat (limited to 'lib/measurement.h')
-rw-r--r-- | lib/measurement.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/measurement.h b/lib/measurement.h index 4ced4dc..a24df9f 100644 --- a/lib/measurement.h +++ b/lib/measurement.h @@ -8,12 +8,9 @@ typedef struct { uint64_t n; double x; - double dx; double x2; double m2; double m4; - double c; - double dc; } meas_t; typedef struct { @@ -25,9 +22,15 @@ typedef struct { double O2; } autocorr_t; -void update_meas(meas_t *m, double x); +void meas_update(meas_t *m, double x); + +double meas_dx(const meas_t *m); + +double meas_c(const meas_t *m); + +double meas_dc(const meas_t *m); void update_autocorr(autocorr_t *OO, double O); -double rho(autocorr_t *o, uint64_t i); +double rho(const autocorr_t *o, uint64_t i); |