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<c3><a1>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 May 27, 2019, 11:36 p.m.