Description Usage Arguments Value
Convert a location vector to a 0-1 indicator vector, such that the corresponding entries in these locations are 1.
1 | loc2dirac(loc, N)
|
loc |
An integer vector, length does not exceed |
N |
The length of the resulting indicator vector. |
A 0-1 indicator vector of length N
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.