R/cdm_sumnorm.R

Defines functions cdm_sumnorm

## File Name: cdm_sumnorm.R
## File Version: 0.02

cdm_sumnorm <- function(vec, norm=1)
{
    vec <- as.vector(vec)
    res <- vec / sum(vec) * norm
    return(res)
}

Try the CDM package in your browser

Any scripts or data that you put into this service are public.

CDM documentation built on Aug. 25, 2022, 5:08 p.m.