Block that computes the baseline for a demand response client.
This implementation computes the 10/10 average baseline.
This baseline is the average of the consumed power of the previous
10 days for the same time interval. For example, if the base line is
computed every 1 hour, then there are 24 baseline values for each day.
Separate baselines are computed for any types of days.
The type of day is an input signal received from the connector
typeOfDay
, and must be equal to any value defined
in
Buildings.Controls.Types.Day.
If a day is an event day, then any hour of this day after the event signal is received is excluded from the baseline computation. Storing history terms for the base line resumes at midnight.
If no history term is present for the current time interval and
the current type of day, then the predicted power consumption
PPre
will be zero.