NNS.norm {NNS} | R Documentation |
NNS Normalization
Description
Normalizes a matrix of variables based on nonlinear scaling normalization method.
Usage
NNS.norm(X, linear = FALSE, chart.type = NULL, location = "topleft")
Arguments
X |
a numeric matrix or data frame, or a list. |
linear |
logical; |
chart.type |
options: ("l", "b"); |
location |
Sets the legend location within the plot, per the |
Value
Returns a data.frame of normalized values.
Note
Unequal vectors provided in a list will only generate linear=TRUE
normalized values.
Author(s)
Fred Viole, OVVO Financial Systems
References
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" https://www.amazon.com/dp/1490523995/ref=cm_sw_su_dp
Examples
## Not run:
set.seed(123)
x <- rnorm(100) ; y<-rnorm(100)
A <- cbind(x, y)
NNS.norm(A)
### Normalize list of unequal vector lengths
vec1 <- c(1, 2, 3, 4, 5, 6, 7)
vec2 <- c(10, 20, 30, 40, 50, 60)
vec3 <- c(0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3)
vec_list <- list(vec1, vec2, vec3)
NNS.norm(vec_list)
## End(Not run)
[Package NNS version 10.8.2 Index]