Description Usage Arguments Value Author(s) Examples

Calculate the chi-squared distance of two any pair-wise samples x_i and x_j for discrete variables

1 |

`X` |
A sample-feature matrix with rows as samples and columns as features |

`C` |
The same as X |

A matrix whose elements at (i,j) is the chi-squared distance of two any pair-wise samples x_i and x_j

Xiaoyao Yin

1 2 3 4 | ```
data_list <- simu_data_gen()
X <- data_list[[1]]
C <- X
Diff <- dist2chi(X,C)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.