FisherTestHeuristic: Feature-clustering based on Fisher's Exact Test.

FisherTestHeuristicR Documentation

Feature-clustering based on Fisher's Exact Test.

Description

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.

Super class

D2MCS::GenericHeuristic -> FisherTestHeuristic

Methods

Public methods


Method new()

Empty function used to initialize the object arguments in runtime.

Usage
FisherTestHeuristic$new()

Method heuristic()

Performs the Fisher's exact test for testing the null of independence between two columns (col1 and col2).

Usage
FisherTestHeuristic$heuristic(col1, col2, column.names = NULL)
Arguments
col1

A numeric vector or matrix required to perform the clustering operation.

col2

A numeric vector or matrix to perform the clustering operation.

column.names

An optional character vector with the names of both columns.

Returns

A numeric vector of length 1 or NA if an error occurs.


Method clone()

The objects of this class are cloneable with this method.

Usage
FisherTestHeuristic$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Dataset, fisher.test


D2MCS documentation built on Aug. 23, 2022, 5:07 p.m.