move_fish_hs: Move Fish based on Hotspots

Description Usage Arguments Examples

View source: R/move_fish_hs.R

Description

This function is meant to simulate fish moving towards hotspots. The idea is that rockfish tend to aggregate around rocky structure. The user specifies hotspots and the fish then move towards the hotspots with some probability max_prob.

Usage

1
move_fish_hs(fish_area, hotspots, max_prob = 0.5, ...)

Arguments

fish_area

Input matrix of distributed fish. Use initialize population to specify this

hotspots

Specify the location of hotspots as a data frame with the names

max_prob

Maximum probability of moving toward the hotspots. Cells adjacent to the hotspots have the highest probability, cells two cells from the hotspots have a probability of moving that is half max_prob.

Examples

1
2
3
4
move_fish_hs(fish_area = initialize_population(distribute = 'patchy', numrow = 10, numcol = 10, seed = 5,
                         nfish = 1000, percent = .50), 
             hotspots = data.frame('row' = c(3, 2), 'column' = c(3, 5)),
             max_prob = 0.2)

peterkuriyama/hlsimulator_old documentation built on May 25, 2019, 1:51 a.m.