Performs feature-clustering based on Fisher's exact test for testing the null of independence of rows and columns in a contingency table with fixed marginals.
D2MCS::GenericHeuristic -> FisherTestHeuristic
new()Empty function used to initialize the object arguments in runtime.
FisherTestHeuristic$new()
heuristic()Performs the Fisher's exact test for testing the null of independence between two columns (col1 and col2).
FisherTestHeuristic$heuristic(col1, col2, column.names = NULL)col1A numeric vector or matrix required to perform the clustering operation.
col2A numeric vector or matrix to perform the clustering operation.
column.namesAn optional character vector with the names of both columns.
clone()The objects of this class are cloneable with this method.
FisherTestHeuristic$clone(deep = FALSE)deepWhether to make a deep clone.
Dataset, fisher.test