Description Usage Arguments Value Examples
For Ternary Coordinates P Return the Nearest Coordinate in Set C
1 | TernaryNearest(P, C)
|
P, C |
n by 3 matrix of ternary coordinates p1, p2, p3_i for i=1,...,n. n may be different for P and C. |
n by 3 matrix of ternary coordinates in C.
1 2 3 | P <- prop.table(matrix(runif(9), ncol = 3), 1)
C <- tricolore:::TernaryMeshCentroids(2)[,-1]
tricolore:::TernaryNearest(P, C)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.