weightMatrix: Create a Matrix containing Weights for each Combination of...

Description Usage Arguments Value

View source: R/weightMatrix.R

Description

Create a Matrix containing Weights for each Combination of Hexagons

Usage

1
weightMatrix(template, method = "exp", gamma = 8, val = c(0.5, 0.25, 0.25))

Arguments

template

A HexTemplate

method

"exp" for exponential, "disc" or anything else for discrete approach

gamma

Integer controlling the speed of the decrease. Only applies when method = "exp".

val

A vector containing weights for each ranked distance between hexagons. Only applies when method = "disc".

Value

A matrix containing weights for each combination of hexagons. To be used in weightedBray.


AG-ESSER/HexTemplatesFCS documentation built on Dec. 31, 2020, 9:44 a.m.