makeDistProb: makeDistProb

Description Usage Arguments

Description

Function to make a matrix of size 'matsize' containing probabilities that decline exponentially by distance from a given cell ('position'). Strength of exponential decline is given by 'lambda'

Usage

1
makeDistProb(matsize, position, lambda)

Arguments

matsize

numeric, size of one side of a square matrix on which to perform calculations

position

numeric, position from which to generate declining probability

lambda

numeric, strength of exponential decline


syanco/checkyourself documentation built on Jan. 18, 2021, 4:50 a.m.