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

View source: R/WeightedBray.R

weightMatrixR Documentation

Create a Matrix containing Weights for each Combination of Bins

Description

Create a Matrix containing Weights for each Combination of Bins

Usage

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

Arguments

template

A FSFTemplate

method

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

gamma

A Number 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.


JonasKup/FlowSoFine documentation built on March 18, 2022, 9:54 a.m.