SDI: Shannon diversity index

Description Usage Arguments Value Author(s) References Examples

View source: R/SDI.R

Description

Calculate the Simpson's diversity index (SDI).

Usage

1
SDI(x)

Arguments

x

weights of latent features.

Value

z

moonlighting coefficient, or normalized Shannon's diversity index.

Author(s)

Lixin Cheng <easonlcheng@gmail.com>

References

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

Examples

1
2
3
a = sample(1:10,4)
b = a/sum(a)
SDI(b)

MoonFinder documentation built on Oct. 30, 2019, 11:31 a.m.