kzs.params {kzs} | R Documentation |
For an n-dimensional input data set, this function will calculate the values by
which the parameters delta
and d
are bounded by.
kzs.params(x, dimension)
x |
a matrix or data frame containing the input data that is to be used in kzs , kzs.2d ,
or kzs.md .
|
dimension |
an integer specifying the dimensionality of x .
|
The compilation of functions within the kzs package requires the specification of two
parameters: the first is delta
, the physical range of smoothing along each variable
in x
; the second is d
, a scale reading of each corresponding input variable
in x
. Each parameter is subject to two restrictions; delta
and d
must both
be positive real numbers, each d
must be less than or equal to the difference of sorted,
consecutive x
values and each delta
must be much less than the difference of the
maximum and minimum values for each corresponding input variable in x
. Hence, for each
input variable in x
, there must be a corresponding delta
and d
. This function
was developed to be used prior to any of the functions within kzs in order to increase the
efficiency of use.
Derek Cyr cyr.derek@gmail.com and Igor Zurbenko igorg.zurbenko@gmail.com
# Generate 3 random sequences of numbers that would act as the input data set x1 <- rnorm(100, 3, 6) x2 <- rnorm(100, 4, 5) x3 <- runif(100, 0, 1) # A matrix or a data frame will work mat <- matrix(c(x1, x2, x3), nrow = 100, ncol = 3) # Dimensionality is 3 since there are 3 input variables kzs.params(x = mat, dimension = 3)