You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use case: for each machine, we want to use variance of R of RMS over a 100 batch window. every 100 batch we do the calculation
json # input json
stat = Db.get(c("machine-1234k-234j-32432k", "R", "RMS"))
if(!obj) #obj not found , maybe you adding first point. So initialize that key.
{
stat = NStats(100)
Db.put(c("machine-1234k-234j-32432k","R","RMS"), stat)
}
# add current point
stat.add(json$ac1$R$RMS)
data = stat.get()
if(data!=FALSE)
{
use data$variance() in your algo
}
#if data available use otherwise next time