View source: R/getProbability.R
getProbability | R Documentation |
Classify the typical days by searching for external factors (e.g. climate factors) explaning the occurence of a particular typical day
getProbability(climate, cluster, levelsProba = c(1/3, 2/3),
extrapolationNA = TRUE, writeProba = FALSE, outputFile = tempdir())
climate |
|
cluster |
|
levelsProba |
|
extrapolationNA |
|
writeProba |
|
outputFile |
|
## Not run:
# load climate daily time serires
library(data.table)
climate <- fread(system.file("testdata/climate_example.txt",package = "fbClust"))
# load clustering results (or build them with clusteringTypicalDays function())
clusterTD <- readRDS(system.file("testdata/allTypDays.rds", package = "fbClust"))
# get Probability matrices
MatProb <- getProbability(climate, clusterTD)
clusterTD[, Class := c("Class1", "Class2")]
levelsProba <- list(Class1 = list(FR_load = c(0.5), DE_wind = c(1/3, 2/3), DE_solar = .5),
Class2 = 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.