data_structure {rLDCP} | R Documentation |
Define the data structure
Description
Data structure provides the GLMP input. It constructor receives the input values and the method that defines the data structure, i.e., the set of preprocesing techniques.
Usage
data_structure(input, method)
Arguments
input |
is the input data. May be a vector, list or matrix with numbers. |
method |
is the function with the data preprocesing techniques needed to prepare the GLMP input. The method must have
one argument, the
|
Value
The generated data_structure = list(input, method)
Examples
values <- matrix(c(34,11,9,32), ncol=2)
my_method <- function (input){
output <- c(mean(input[,1]), mean(input[,2]))
output
}
my_data_structure <- data_structure(values,my_method)
[Package rLDCP version 1.0.2 Index]