echoIBM.generate_oneschool: Generates the position variables of one school. The fish are...

Description Usage Arguments

View source: R/echoIBM.generate_oneschool.R

Description

Generates the position variables of one school. The fish are first put on an iso grid defined by the packing density. Then noise is added to these positions by the Gaussian distribution with mean 0 and standard deviation specified the inputs 'SDxf', 'SDyf', 'SDzf', (repeated to length 3 and defaulted to 1 if missing), all in units of the grid size. Finally, the orientations of the fish is set independently of the positions, by generating two sets of positions which are gridded positions separated by one grid unit in the x-direction and added noise by a standard deviation producing the desired polarization (by a pre-generated table).

Usage

1
2
echoIBM.generate_oneschool(data, school = 1, seed = NULL, dumpfile = NULL,
  aboveSurface = c("cut", "force"))

Arguments

data

is a list containing the necessary data:

school

is the index number of the school.


arnejohannesholmin/echoIBM documentation built on March 19, 2018, 9:16 a.m.