foehnix.control | R Documentation |
Used to control the foehnix
mixture models.
foehnix.control(
family,
switch,
left = -Inf,
right = Inf,
truncated = FALSE,
standardize = TRUE,
maxit = 100L,
tol = 1e-08,
force.inflate = FALSE,
glmnet.control = NULL,
verbose = TRUE,
...
)
family |
character specifying the distribution of the components in the
mixture model. Allowed: |
switch |
logical whether or not the two components should be switched.
By default ( |
left |
default is |
right |
default is |
truncated |
logical. If set to |
standardize |
logical flag, default is |
maxit |
control argument for the iterative solvers. Default is
|
tol |
similar as for |
force.inflate |
logical, default is |
glmnet.control |
an object of class |
verbose |
logical, if set to |
... |
currently sent to hell. |
Inflation: foehnix
models are based on time series objects.
For some methods (e.g., to create nice and easy to read time series plots and
count statistics)
foehnix
inflates the time series object using the smallest time
interval in the data set. This can, possibly, yield very large data sets. Thus,
foehnix
is pre-calculating the inflation rate, the fraction between
the length of the inflated data set versus the length of the data set provided by
the user. If this inflation rate exceeds 2 the script will raise an error!
In this case, the user is kindly asked to check if the time series object
(input data
). A possible scenario: a user is performing foehn diagnosis
using 5 years of data from one station with 10 minute observations. This yields
(neglecting leap years) 5 * 365 * 144 = 262.800
observations. Imagine that there
is one incorrect observation reported one second after one of the regular
10 minute records. The smallest time increment would thus be 1 second. This would
yield an inflated time series object with a total record length of
5 * 365 * 86.400 = 157.680.000
. Even if only filled with missing values
(NA
) this will be extremely memory demanding. To avoid this,
foehnix
will stop in such situations.
However, the user is allowed to overrule this condition by setting the
force.inflate
option to TRUE
.
Reto Stauffer
foehnix
, foehnix.family
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.