diff options
| author | wukong <wukong@longaeva> | 2018-06-15 09:17:23 -0700 |
|---|---|---|
| committer | wukong <wukong@longaeva> | 2018-06-15 09:17:23 -0700 |
| commit | ce5e0a8f088e19e8ebe9a27d8efd4207363791af (patch) | |
| tree | 6c325b3b995f984e19418ede16cfa5e5a5c9c2f0 /lin_reg.awk | |
| parent | e8e5644e677af6eac9361902d24e8df72bc2902c (diff) | |
fixed row 1 header issue in diff.awk; other small adjustments in hamming and lin_reg
Diffstat (limited to '')
| -rw-r--r-- | lin_reg.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lin_reg.awk b/lin_reg.awk index e1cb722..51f2e87 100644 --- a/lin_reg.awk +++ b/lin_reg.awk @@ -39,7 +39,7 @@ NF != 0 { sum_delta2[y] += delta[y]*delta[y] ### sample variance - (count[y] - 1) ? var[y] = sum_delta2[y]/(count[y] - 1) : var[y] = 0 + (count[y] > 1) ? var[y] = sum_delta2[y]/(count[y] - 1) : var[y] = 0 # x = row, y = col for (x=1; x<=max_nf; x++) { |
