shapeMean: Shape statistic: Mean

Description Usage Arguments Value See Also Examples

View source: R/shape.R

Description

Calculates the mean of a vector.

Usage

1

Arguments

x

numeric Rle vector: Coverage series.

Value

Numeric

See Also

Other Shape functions: calcShape(), shapeEntropy(), shapeIQR()

Examples

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 mean
shapeMean(x_sharp)
shapeMean(x_broad)

# See calcShape for more usage examples

MalteThodberg/CAGEfightR documentation built on Sept. 11, 2021, 4:42 a.m.