Description Usage Arguments Value Examples
This function is used in updating Q matrix if we constrain the updates within the identifiability assumption
1 | equal_unit_vec(v, k)
|
v |
the vector (a binary vector) |
k |
the index that is being checked if |
TRUE if v = \mathbf{e}_k; FALSE otherwise.
1 2 3 4 | equal_unit_vec(c(1,0,0,0,0,0),1)
equal_unit_vec(c(1,0,0,0,0,0),2)
equal_unit_vec(c(0,0,2,0,0,0),3)
equal_unit_vec(c(0,0,1,0,0,0),3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.