random_FLCatches_generator: Generates an FLCatches object - a list of randomly sized and...

View source: R/test_helper_functions.R

random_FLCatches_generatorR Documentation

Generates an FLCatches object - a list of randomly sized and filled FLCatch objects

Description

Generates a list of identically sized FLCatch objects filled with normally distributed random numbers with a mean of 0. Used for automatic testing, particularly of the FLCatches_base<T> class in CPP.

Usage

random_FLCatches_generator(min_catches = 2, max_catches = 5, ...)

Arguments

min_catches

The minimum number of catches. Default is 2.

max_catches

The maximum number of catches. Default is 5.

...

Other arguments passed to random_FLQuant_generator().

Value

An FLCatches objects

Examples

flcs <- random_FLCatches_generator()
length(flcs)
summary(flcs)
lapply(flcs, summary)

iagomosqueira/FLasher documentation built on Jan. 11, 2024, 12:58 a.m.