View source: R/sample_turbine_mCRM.R
sample_turbine_mCRM | R Documentation |
Samples and aggregates appropriate data for a single wind turbine
sample_turbine_mCRM( rtn_speed_pars, bld_pitch_pars, rtr_radius_pars, bld_width_pars, season_specs, n_iter = 10, trb_wind_avbl, trb_downtime_pars )
rtn_speed_pars |
A single row data frame with columns |
bld_pitch_pars |
A single row data frame with columns |
rtr_radius_pars |
A single row data frame with columns |
bld_width_pars |
A single row data frame with columns |
season_specs |
A data frame defining the seasons for aggregating over collision estimates. It must comprise the following columns:
|
n_iter |
An integer value. The number of samples to generate |
trb_wind_avbl |
A data frame with the monthly estimates of operational wind availability. It must contain the columns:
|
trb_downtime_pars |
A data frame with monthly estimates of maintenance downtime, assumed to follow a tnorm-lw0 distribution. It must contain the following columns:
|
A data frame of all the information sampled for the turbine with nrow = n_iter
season_specs <- data.frame( season_id = c("PrBMigration", "PoBMigration","OMigration"), start_month = c("Mar", "May", "Oct"), end_month = c("Apr", "Sep", "Feb") ) windavb <- data.frame( month = month.abb, pctg = runif(12, 85, 98) ) dwntm <- data.frame( month = month.abb, mean = runif(12, 6, 10), sd = rep(2, 12)) sample_turbine_mCRM(rtn_speed_pars = data.frame(mean = 13.1, sd = 4), bld_pitch_pars = data.frame(mean = 3, sd = 0.3), rtr_radius_pars = data.frame(mean = 80, sd = 0), bld_width_pars = data.frame(mean = 8, sd = 0), season_specs = season_specs, n_iter = 10, trb_wind_avbl = windavb, trb_downtime_pars = dwntm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.