Description Usage Arguments Value Examples
View source: R/evalNbAnalogs.R
Assign the optimal number of analogues to every analogue date. This only works on the calibration period, where the optimal number of analogues can be assessed for the non independent dates.
1 | optimalNbAnalogOfAnalogs(A, target.a.nb)
|
A |
Results of AtmoSwing as parsed by atmoswing::parseAllNcOutputs. |
target.a.nb |
Results of atmoswing::optimalNbAnalog |
Matrix of the optimal number of analogues for each analogue date.
1 2 3 4 5 6 7 | ## Not run:
data <- atmoswing::parseAllNcOutputs('optim/1/results', 1, 'validation')
res.crps <- atmoswing::crpsNbAnalogs(data)
target.a.nb <- atmoswing::optimalNbAnalog(res.crps$crps.smoothed)
res <- atmoswing::optimalNbAnalogOfAnalogs(data, target.a.nb$nb.min.med)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.