-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinitialize.m
More file actions
33 lines (33 loc) · 1.02 KB
/
initialize.m
File metadata and controls
33 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function [Theta, Gamma] = initialize(C, R)
%
% This file includes code for the paper Probabilistic Load Forecasting based on Adaptive Online Learning.
% @author: Verónica Álvarez
%
% This function initializes model parameters and state variables for each calendar type c = 1, 2, ..., C
%
% Inputs
% C is the length of calendar information
% R is the length of feature vector representation of observations
%
% Outputs
% Theta is the updated list of model parameters
% Gamma is the updated list of state variables require to update model parameters
%
% For each c, etad is a vector with length 2
Theta.etad = zeros(2, C);
Theta.sigmad = zeros(1, C);
Gamma.gammad = zeros(1, C);
% For each c, etad is a vector with length R
Theta.etar = zeros(R, C);
Theta.sigmar = zeros(1, C);
Gamma.gammar = zeros(1, C);
for i = 1:C
Gamma.Pd(:, :, i) = eye(2);
Gamma.Pr(:, :, i) = eye(R);
end
% Mean of the temperature
Theta.wt = zeros(1, C);
Theta.sigmat = zeros(1, C);
Gamma.gammat = zeros(1, C);
Gamma.Pt = ones(1, C);
end