View source: R/mathematicalfunctions.R
kronecker_delta | R Documentation |
Kroneckerdelta function
kronecker_delta(i, j)
i |
a scalar index (usually row of a matrix) |
j |
a scalar index (usually column of a matrix) |
a scalar value. Returns 1 if i and j are equal otherwise returns 0
Christina Harvey
library(AvInertia) # should return 1 kronecker_delta(1,1) # should return 0 kronecker_delta(0,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.