knitr::opts_chunk$set(echo = TRUE) library(evprof)
The EV model object defined by {evprof}
is generated with function get_ev_model()
. This function returns an object of class evmodel
. This object prints a summary of its components. The package provides an example of evmodel
created in the California study case article, using the charging sessions data provided by ACN.
evprof::california_ev_model
The evmodel
object has two components:
metadata
: creation date, data time zone, if the scale of connection/energy models is natural or logarithmic, ...models
: tibble containing the different time-cycles models and information. The columns of this tibble are:
time_cycle
: character, given name to the time-cyclemonths
: integer vector, corresponding months of the time-cyclewdays
: integer vector, corresponding days of the time-cycle (week starting on day 1)user_profiles
: tibble with every user profile GMM models. The columns of this tibble are:
profile
: character vector, given name to the user profileratio
: numeric, share of daily sessions corresponding to this profileconnection_models
: tibble with the connection bi-variate GMMenergy_models
: tibble with the energy uni-variate GMMThe model itself is composed by multiple Gaussian models (GMM). The connection_models
are Gaussian models of two variables (connection start time and connection duration) and the energy_models
are built with a single variable (energy). Thus, the statistic features of connection_models
are a centroid ($\mu$), a covariance matrix ($\Sigma$) and the weight or ratio of the corresponding model. Besides, the statistic features of energy_models
are a mean ($\mu$), a standard deviation ($\sigma$) and the weight or ratio of the corresponding model.
Let's take a look to these statistical features of the Worktime user profile for Working days in the California model:
california_ev_model$models
workday_model <- california_ev_model$models$user_profiles[[1]] workday_model
worktime_model <- workday_model[2, ]
The connection model is a mixture of 3 bi-variate Gaussian Models:
worktime_model$connection_models
On the other hand, the energy models can be based on the charging rate (Power
variable) of the sessions. It has been observed that the energy demand increases together with the charging power (big vehicles have larger batteries and can charge at higher rates). Thus, function get_energy_models
has the logical parameter by_power
to fit the Energy Gaussian Models for the different groups of charging powers separately. In the case of California study case, we set by_power=FALSE
, that's why we got the Unknown
in the energy_models
tibble with a ratio
of 1:
worktime_model$energy_models[[1]]
Thus, the energy model of all Worktime sessions is a mixture of 9 Gaussian models:
worktime_model$energy_models[[1]]$energy_models[[1]]
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.