R/solarOption.R
solarOption_moments.RdCompute the first fourth moments and variance of a SoRad
solarOption_moments(
moments,
transform,
lambda = 0,
put = TRUE,
link = "invgumbel",
control_options = control_solarOption()
)slot transform of a solarModel
Sugeno parameter
Logical, when TRUE, the default, will be computed the price for a put contract, otherwise for a call contract.
Named list with control parameters. See control_solarOption for more details.
Version 1.0.0.
# Solar model
model <- solarModel$new(spec)
model$fit()
#> No outliers!
moments <- model$moments$unconditional
solarOption_moments(moments[1:365,], model$transform)
#> Error in 1:nrow(df_tT): argument of length 0