Description Usage Arguments Value Examples
Joint Entropy
1 | joint.entropy(x, y = NULL, file = "None")
|
x |
a vector, matrix, or data.frame. |
y |
a vector. y must be NULL if x is a matrix or a data.frame. |
file |
In case of x been a data.frame or matrix, represent the name of output file for saving joint entropy plot. |
In case of x been a data.frame or matrix, joint entropy of all variables/columns in x. Otherwise, joint entropy of x and y.
1 2 3 4 5 | df <- data.frame("V1" = sample.int(2,5,replace=TRUE), "V2" =sample.int(2,5,replace=TRUE) , "V3" = sample.int(2,5,replace=TRUE), "V4" = sample.int(2,5,replace=TRUE), "V5" = sample.int(2,5,replace=TRUE), "V6" = sample.int(2,5,replace=TRUE), "V7" = sample.int(2,5,replace=TRUE), "V8" = sample.int(2,5,replace=TRUE))
x <- sample.int(2, 5,replace=TRUE)
y <- sample.int(2, 5,replace=TRUE)
joint.entropy(df, file ="jointEntropy")
joint.entropy(x = x, y = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.