summaryrefslogtreecommitdiff
path: root/ckt0.sh
diff options
context:
space:
mode:
authorwukong <wukong@tjikko>2025-12-20 18:14:42 -0800
committerwukong <wukong@tjikko>2025-12-21 12:31:01 -0800
commit3bcb519ca17fad1d2a4c9ec94e02b797d2cda859 (patch)
tree10aa2849b5e7c4cd7906b0a3e14500a000c0087e /ckt0.sh
parentc6aafa61408fdec5d38a246709acc538aba79c27 (diff)
added commented out alternate uptime prediction;
changed to merge_meas() of t_meas[] estimate when t[before] == t[after], this provides a sub-second uncertainty when used with systime() and helps derived estimates converge; set shell script to use uncertainty based sleep time in main loop;
Diffstat (limited to '')
-rw-r--r--ckt0.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/ckt0.sh b/ckt0.sh
index 88fbb78..cf54ad0 100644
--- a/ckt0.sh
+++ b/ckt0.sh
@@ -25,10 +25,9 @@ for N in $(seq 0 10080) ; do
printf "${N} ${t0_est}\n" | column -t
t0_est=$( mawk -f ckt0.awk ${t0_est} | tail -n2 )
#mawk -f ckt0.awk
- sleep $( mawk 'BEGIN {print(sqrt( rand()^2.0 + 1.0 ))}' )
+ #sleep $( mawk 'BEGIN {print(sqrt( rand()^2.0 + 1.0 ))}' )
#sleep $( echo $t0_est | mawk '{print(sqrt( ((60.0*$4)/(60.0 + $4))^2.0 + rand()^2.0 ))}' )
- #sleep $( echo $t0_est | mawk '{print(sqrt( ($2)^2.0 + ($4)^2.0 + ($6)^2.0 + rand()^2.0 ))}' )
- #sleep $( echo $t0_est | mawk '{print( 10.0 - (systime() - $5)%10.0 + 0.5*rand()^2.0 )}' )
+ sleep $( echo $t0_est | mawk '{print( sqrt($2^2.0 + $4^2.0 + $6^2.0 + rand()^2.0)%30.0 )}' )
done