Description Usage Arguments Value See Also Examples

Calculates the Shannon Entropy (base log2) for a vector. Zeros are removed before calculation.

1 | ```
shapeEntropy(x)
``` |

`x` |
numeric Rle vector: Coverage series. |

Numeric.

Other Shape functions: `calcShape`

,
`shapeIQR`

, `shapeMultimodality`

1 2 3 4 5 6 7 8 9 | ```
# Hypothetical shard/broad clusters:
x_sharp <- Rle(c(1,1,1,4,5,2,1,1))
x_broad <- Rle(c(1,2,3,5,4,3,2,1))
# Calculate Entropy
shapeEntropy(x_sharp)
shapeEntropy(x_broad)
# See calcShape for more usage examples
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.