Learn R Programming

MoonFinder (version 1.0.3)

SDI: Shannon diversity index

Description

Calculate the Simpson's diversity index (SDI).

Usage

SDI(x)

Arguments

x

weights of latent features.

Value

z

moonlighting coefficient, or normalized Shannon's diversity index.

References

MoonFinder: a framework for the identification of moonlighting non-coding RNAs.

Examples

Run this code
# NOT RUN {
a = sample(1:10,4)
b = a/sum(a)
SDI(b)
# }

Run the code above in your browser using DataLab