Calculate variance

var_cpp(x, bias = TRUE)

Arguments

x

a vector of gene expression.

bias

degree of freedom

Value

a variance value

Examples

var_cpp(seq_len(10^6))
#> [1] 83333416667