infoDim: Calculate information dimension of a matix

View source: R/infoDim.R

infoDimR Documentation

Calculate information dimension of a matix

Description

The function calculates a measure, called "information dimension".

Usage

infoDim(Matrix)

Arguments

Matrix

A matrix with data (rows = observations, columns = variables).

Value

A list (classes "list" and "infoDim") with fields:

$dim

Information dimension, rounded towards positive infinitive;

$exactDim

Information dimension (fractional, not rounded);

$explained

A vector of eigenvalues, normalized by sum of eigenvalues, which can be used to determine the importance of (principal) components;

$eigenvalues

A vector of eigenvalues;

$n.comp

A vector with integers from 1 to length(eigenvalues).

Author(s)

Vilmantas Gegzna

References

[1] R. Cangelosi and A. Goriely, Component retention in principal component analysis with application to cDNA microarray data. Biol Direct, 2, 2 (2007), http://dx.doi.org/10.1186/1745-6150-2-2

See Also

Other information dimension functions: qplot_infoDim()

Other component analysis / factorisation related functions in spHelper: getScores(), plot_spDiff(), qplot_infoDim(), qplot_kAmp(), qplot_kSp(), qplot_spc(), reconstructSp(), sortLoadings(), unipeak(), whichOutlier()

Examples

 my_matrix <- matrix(rexp(200, rate=.1), ncol=20)

 my_result <- infoDim(my_matrix)

 # Investigate the result
 str(my_result)
 my_result$exactDim
 my_result$dim

 #Plot
 my_plot <- qplot_infoDim(my_result)
 my_plot


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.