I would like to know how exactly the CUSUM weight parameter works? Where does it fit into the calculation. I have energy consumption data that varies in summer and winter therefore I need to "moving average" alarm that looks at the history data.

i have attached a csv for reference.Data.csv