random_FLQuant_generator: Generate randomly sized and filled FLQuant objects

Description Usage Arguments Value Examples

Description

Generate a randomly or fixed sized FLQuant filled with normally distributed random numbers with a mean of 0. Used for automatic testing. All dimensions have at least length 2.

Usage

1
2
random_FLQuant_generator(fixed_dims = rep(NA, 6), max_dims = c(5, 10, 5, 4,
  4, 5), sd = 100)

Arguments

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,10,5,4,4,5).

sd

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

Value

An FLQuant

Examples

1
2
3
4
5
6
flq <- random_FLQuant_generator()
dim(flq)
summary(flq)
flq <- random_FLQuant_generator(fixed_dims = c(NA,10,1,4,1,NA))
dim(flq)
summary(flq)

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