View source: R/bws_nearest_neighbour.R
bws_nearest_neighbour | R Documentation |
This internal function will check if a file with previous computations exists, and if so rather read the results from that file than recomputing the results. If no file is found in the specified directory, or if only some of the results are computed, then it will do the required computations and create a file to be used later on.
bws_nearest_neighbour(
save_dir = NULL,
TS,
lag_min = 0,
lag_max,
bw_points = c(25, 35),
levels
)
save_dir |
A specification of the directory to be used when
saving (and loading) data. The default value |
TS |
The time series we want to investigate by means of local Gaussian approximation (and later on with local Gaussian spectra). Note that it is assumed that this time series have normalised marginals. |
lag_min |
A non-negative integer, default value |
lag_max |
How many lags should be included in the analysis. |
bw_points |
A vector, default |
levels |
The points at which we (for different lags) want
to center "bandwidth-squares" that encapsulates the desired
percentage (given by |
This function will return a list with the desired
"nearest-neighbour" bandwidths to the work-flow, one part for
the lag zero case and one part for positive lags. In addition
will there be created/update a file with the desired
information. If later on there's a need for a computation with
a higher value for lag_max
, then the values from the
saved file will be used in order to avoid redoing previous
computations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.