ValidSetup: Checks whether all turbine locations provided satisfy the...

View source: R/Functions.R

ValidSetupR Documentation

Checks whether all turbine locations provided satisfy the minimum distance criterion.

Description

For a set of turbine locations represented by x and y, checks whether all possible pairs satisfy the minimum distance criterion.

Usage

ValidSetup(x, y)

Arguments

x

must be a numeric vector of at least two values, contains the 'x' location(s) of turbines.

y

must be a numeric vector of at least two values, contains the 'y' location(s) of turbines.

Value

ValidSetup returns TRUE if all pairs of turbines are at least as far away from each other as 'MinDist' from the FarmVars settings object requests, or FALSE, else.

Author(s)

Carsten Croonenbroeck

Examples

ValidSetup(c(0.5, 0.7), c(0.7, 0.9))
## Returns TRUE if FarmVars$MinDist is at its standard value (0.1).

wflo documentation built on Jan. 15, 2023, 5:10 p.m.

Related to ValidSetup in wflo...