mesarcik / Roastery

Coffee Roast Monitoring System
1 stars 0 forks source link

Prevent users making kernel size too large relative to the window size. #19

Open Jonolef opened 7 years ago

Jonolef commented 7 years ago

Assume there is a mathematical reason, but seemed weird that the RoR graph looked really good, but the temp was so dramatically way off. I had to abandon using the temp readings altogether.

mesarcik commented 7 years ago

what was the window size? Also 11?

Jonolef commented 7 years ago

No. 15.

mesarcik commented 7 years ago

This might get a bit mathematical.

but in short, i need to prevent users from making the kernel size too big.

Basically the kernel runs through the window and averages out the points, this means if the kernel is 11 and the window is 15 there are only 5 places that the kernel can be in so that it averages the the 11 readings in the window of 15 readings. This means that the average reading you are getting isn't properly representative of the "real average".

I would recomend keeping the kernel at least half the size of the window.