R/log_dgnorm.R

Defines functions log_dgnorm

## File Name: log_dgnorm.R
## File Version: 0.06

## kernel of the generalized normal distribution
log_dgnorm <- function( x, loc, scale, power )
{
    if ( power < 1E3 ){
        y <- - ( abs( x - loc ) / scale )^power / power
    } else {
        y <- rep(0, length(x) )
    }
    return(y)
}

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.