EF: Evaluation Function to be passed to optim()

EFR Documentation

Evaluation Function to be passed to optim()

Description

Note that the "Local Variable Structures and examples" section below was not labelled as belonging to a function "EF". It was labelled as belonging to a function "fn". I'm assuming that the variables actually belong to EF because "fn" is the argument name that EF gets assigned to when passed to optim().

Usage

EF(
  seed_value,
  tot_num_spp_after_wrapping,
  min_num_spp_on_2_PUs,
  max_max_abundance,
  target_max_abundance_ct,
  add_one_to_abundances,
  outfile,
  mean_sd_pair
)

Arguments

seed_value

integer

tot_num_spp_after_wrapping

integer

min_num_spp_on_2_PUs

integer

max_max_abundance

integer

target_max_abundance_ct

integer

add_one_to_abundances

boolean

outfile

character string

mean_sd_pair

2 element numeric vector containing the mean and standard deviation to use for the lognormal

Value

Returns numeric score from evaluating the given lognormal; the closer to 0 the better


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.