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
Right now, the predicted-npm package's algorithm is off.
Wade has provided updated constants that should fix things, but we should really write some better test cases that compare their matlab results with ours. It is okay if the exact numbers don't line up 100%, but the start and decay times should line up, and at any given hour, they should be within 5% of each other.
Hi Guys -
There is something going on here and I don't know what it is. Your display works awesome. I am impressed how you successfully pull the three data sources and how stable it is. The algorithm relaxation seems off to me. Time Since Rain (TSR) seems to start since midnight and your calculation says the CFU is now about 38 MPN. If the variable TSR (hours) goes into the code MPN = 292 * TSR ^ -.6 then using 12 hours for TSR, the MPN (or CFU) should now be 292 * (12)^-.6 = 65 CFU
Could the four of us fix this because everything is working mechanically but the Reaktor code isn't matching the S&W code (I think).
This is not great since it is giving a false negative (I think).
Wade and Shawnee
%MPN algorithm with CP data (every 15 min)
r_rec=length(rain);
rain_alg = zeros(1,r_rec);
count_tsr=rain_alg;
time_alg=rain_alg;
for i =33:r_rec
rain_alg(i)=sum(rain(i-32:i));
if rain_alg(i) >.25
count_tsr(i) =1;
else
count_tsr(i)=1+count_tsr(i-1);
end
timer(i)=i*.25;
time_alg(i)=count_tsr(i)*.25;
end
bacteria_MPN =292.3*time_alg.^-.61;
%current value
bacteria_MPN(end)
The text was updated successfully, but these errors were encountered:
Right now, the predicted-npm package's algorithm is off.
Wade has provided updated constants that should fix things, but we should really write some better test cases that compare their matlab results with ours. It is okay if the exact numbers don't line up 100%, but the start and decay times should line up, and at any given hour, they should be within 5% of each other.
The text was updated successfully, but these errors were encountered: