random_FLFishery_generator: Generate a randomly filled and sized FLFishery object

View source: R/test_helper_functions.R

random_FLFishery_generatorR Documentation

Generate a randomly filled and sized FLFishery object

Description

Generate a randomly sized FLFishery object filled with normally distributed random numbers with a mean of 0. Used for automatic testing, particularly of the FLFishery_base<T> class in CPP.

Usage

random_FLFishery_generator(min_catches = 2, max_catches = 5, sd = 1, ...)

Arguments

min_catches

The minimum number of catches. Default is 2.

max_catches

The maximum number of FLCatches in the catches list. Default is 5.

sd

Standard deviation of the randomly generated FLQuant slots.

...

Other arguments passed to random_FLCatches_generator().

Value

An FLFishery object

Examples

flf <- random_FLFishery_generator(fixed_dims = c(NA,10,1,1,1,1))
lapply(flf, summary)
flf <- random_FLFishery_generator(fixed_dims = c(NA,10,1,1,1,1), max_dims = c(100,NA,NA,NA,NA,NA))

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