I have predicted the Alarm line using Linear Regression and it seems quite convincing. However, i need to output in discrete values(As shown in Screenshot)
Figure Description
Predicted Alarm : * Sky Blue*
Real Alarm : Green
My Approach
I have tried to smooth the signal using Moving Average(Simple exponential), and also tried to smooth the signal by using ggplot2, still could not achieve the requirement.
Tools Used
Knime and R studio
Question
1. Suggestion on alternate method to convert continuous output to discreet ?
Suggestion Appreciated!!