data_structure: Define the data structure

Description Usage Arguments Value Examples

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

1
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 input data:

my_method <- function(input)

Value

The generated data_structure = list(input, method)

Examples

1
2
3
4
5
6
7
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)

rLDCP documentation built on May 2, 2019, 2:30 a.m.

Related to data_structure in rLDCP...