Description Usage Arguments Value Examples
Computes the Chi-square distance between n points in m dimensions ,or two points with same dimensions.
1 | chiSq_dis(x, y, output = "matrix")
|
x |
Numeric vector, or a matrix with size n x m. |
y |
(optional)Numeric vector; must be the same length as x. If no input of y, please specify all other parameters to avoid confusion. |
output |
Format of output, either matrix or dist object. Default is matrix. |
Chi-square distance matrix or object calculated by sum((x - y)^2 /(x + y)) between points
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.