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'
1 | makeDistProb(matsize, position, lambda)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.