Description Usage Arguments Examples
View source: R/getProbability.R
Classify the typical days by searching for external factors (e.g. climate factors) explaning the occurence of a particular typical day
1 2 | getProbability(climate, cluster, levelsProba = c(1/3, 2/3),
extrapolationNA = TRUE)
|
climate |
|
cluster |
|
levelsProba |
|
extrapolationNA |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # load climate daily time serires
library(data.table)
climate <- fread(system.file("dataset/climate_example.txt",package = "flowBasedClustering"))
# load clustering results (or build them with clusteringTypicalDays function())
clusterTD <- readRDS(system.file("dataset/cluster_example.RDS",package = "flowBasedClustering"))
# get Probability matrices
MatProb <- getProbability(climate, clusterTD)
# run with specified probability levels, and witout auto-filling the NA cases
levelsProba <- list(summerWd = list(FR_load = c(0.5), DE_wind = c(1/3, 2/3), DE_solar = .5),
summerWe = list(FR_load = c(0.5, 0.7), DE_wind = c(.5))
)
MatProb <- getProbability(climate, clusterTD, levelsProba = levelsProba, extrapolationNA = FALSE)
MatProb2 <- getProbability(climate, clusterTD, levelsProba = levelsProba, extrapolationNA = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.