Description Usage Arguments Value Examples
Given barycentric coordinates return the id of the surrounding sextant.
1 | TernarySurroundingSextant(P, center)
|
P |
n by 3 matrix of ternary coordinates p1, p2, p3_i for i=1,...,n. |
center |
The sextant center. A vector of ternary coordinates p1, p2, p3. |
An n element character vector of sextant id's 1 to 6.
1 2 | P <- prop.table(matrix(runif(9), ncol = 3), 1)
tricolore:::TernarySurroundingSextant(P, rep(1/3, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.