random_FLQuant_list_generator: Generate lists of randomly sized and filled FLQuant objects

Description Usage Arguments Value Examples

Description

Generate a list of randomly sized FLQuant objects filled with normally distributed random numbers with a mean of 0. Used for automatic testing, particularly of the FLQuant7_base<T> class in CPP.

Usage

1
random_FLQuant_list_generator(min_elements = 1, max_elements = 10, ...)

Arguments

min_elements

The minimum number of elements in the list. Default is 1.

max_elements

The maximum number of elements in the list. Default is 10.

fixed_dims

A vector of length 6 with the fixed length of each of the FLQuant dimensions. If any value is NA it is randomly set using the max_dims argument. Default value is rep(NA,6).

max_dims

A vector of length 6 with maximum size of each of the FLQuant dimensions. Default value is c(5,5,5,4,4,10).

sd

The standard deviation of the random numbers. Passed to rnorm() Default is 100.

Value

A list of FLQuant objects

Examples

1
2
3
4
flq_list <- random_FLQuant_list_generator()
length(flq_list)
summary(flq_list)
lapply(flq_list, summary)

drfinlayscott/FLRcppAdolc documentation built on May 15, 2019, 1:57 p.m.