diff options
Diffstat (limited to '')
| -rw-r--r-- | kalman_init.awk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kalman_init.awk b/kalman_init.awk index 0ed72a6..0321c4d 100644 --- a/kalman_init.awk +++ b/kalman_init.awk @@ -20,8 +20,7 @@ NR == 1 { } NF != 0 { - #print "\n" - print "\n" NR ": \t" $0 + print ORS NR ":" OFS $0 ORS if (NF > max_nf) max_nf = NF @@ -68,11 +67,12 @@ NF != 0 { est_err[n] = (1.0 - KG[n])*est_err_last[n] ### visual check - printf "meas: \t%.18g %.18g %.18g", $n, meas_err[n], count[n] - printf "\nd1: \t%.18g", diff[n] - printf "\nd2: \t%.18g", diff2[n] - printf "\nest: \t%.18g %.18g %.18g", est[n], est_err[n], KG[n] + printf "meas: " OFS OFMT OFS OFMT OFS OFMT, $n, meas_err[n], count[n] + printf "d1: " OFS OFMT, diff[n] + printf "d2: " OFS OFMT, diff2[n] + printf "est: " OFS OFMT OFS OFMT OFS OFMT, est[n], est_err[n], KG[n] + ### update previously remembered values last2[n] = last[n] last[n] = $n diff_last2[n] = diff_last[n] @@ -83,7 +83,7 @@ NF != 0 { delta2_last[n] = delta2[n] est_last[n] = est[n] est_error_last[n] = est_error[n] - printf "\n" + printf ORS } } } |
