Computes Shannon entropy (in nat) of the feature frequency profile using the plug-in estimator.

Arguments

countmatrix

A matrix of counts

axis

Integer indicating which axis to compute entropy along (1 for rows, 2 for columns)

method

Character string indicating the estimation method

Value

A vector of Shannon entropy values