Description Usage Arguments Examples
This function returns a matrix of estimated usage given a specific model, independent variable matrix, parameter matrix and change-point(s).
1 |
model |
A charater string. Model such as '2P', '3PH', '3PC', '4P' or '5P'. |
x |
A vector. Independent variable. |
B |
A matrix, either 2 by 1 or 3 by 1 matrix. |
cp1 |
A numeric value. The first change-point. Defaults to NA. |
cp2 |
A numeric value. The second change-point. Defaults to NA. |
1 2 3 4 5 6 7 | util = subset(unretrofit_utility, unretrofit_utility$bdbid == 'f3acce86'
& unretrofit_utility$energy_type == 'Elec')
temp = sort_matrix(util$OAT,util$usage)
x_split = splitter('4P', temp$x, 51)
xmat = make_matrix(x_split)
B = least_squares(xmat, temp$y)
y_est = y_gen('4P', temp$x, B, 51, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.