diff options
| author | wukong <wukong@longaeva> | 2018-06-18 04:00:29 -0700 |
|---|---|---|
| committer | wukong <wukong@longaeva> | 2018-06-18 04:00:29 -0700 |
| commit | c44ac59acbb18c6982e180637566dec8eb9baebd (patch) | |
| tree | 66ea1e51ed0a60b2fdf48ea1b1c5b852007a05fd /kalman.awk | |
| parent | 2482727a6902e44e6a68236f878f5f9bf7947bd2 (diff) | |
adjusted print statements to use OFMT, OFS, and ORS;
Diffstat (limited to '')
| -rw-r--r-- | kalman.awk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/awk -f -### lin_reg.awk +### kalman.awk # simple linear regression between columns BEGIN { @@ -98,7 +98,7 @@ END { for (y=1; y<=max_nf; y++) { for (x=1; x<=max_nf; x++) { if (x != y && r[x,y]) { - printf("\n %.18g %.18g \t (%s) \t = (%.18g +/- %.18g)(%s) \t + (%.18g +/- %.18g)", + printf(OFMT OFS OFMT OFS "(%s)" OFS " = (" OFMT " +/- " OFMT ")(%s)" OFS " + (" OFMT " +/- " OFMT ")"ORS, meas_cov[x,y], est_err_cov[x,y], header[y], b[x,y], b_err[x,y], header[x], a[x,y], a_err[x,y]) } |
