costFun: Calculate a "cost sink" based on direction, speed, and angle....

Description Usage Arguments Value

View source: R/costFun.R

Description

Calculate a "cost sink" based on direction, speed, and angle. Based on Afán et al. 2015

Usage

1
costFun(water.direction, water.speed, angle.sink)

Arguments

water.direction

A numeric array expressing wind directions.

water.speed

An array with dimensions matching that of water.direction

angle.sink

A matrix of angles calculated using angleSink.

Value

A numeric array, with dimensions matching water.direction and water.speed


rossholmberg/pkgButterfly documentation built on March 19, 2018, 4:41 p.m.