dpower: Returns density from EP Distribution

View source: R/RcppExports.R

dpowerR Documentation

Returns density from EP Distribution

Description

The dpower returns the density at point x for the Exponential Power distribution with parameters a, b and m.

Usage

dpower(x, m = 0, a = 1, b = 2)

Arguments

x

(numeric) - value in the range (-\infty, \infty) to evaluate the density.

m

(numeric) - location parameter. Must be in the range (-\infty, \infty).

a

(numeric) - scale parameter. Must be in the range (0, \infty).

b

(numeric) - shape parameter. Must be in the range (0, \infty).

Details

The Exponential Power distribution (EP) is given by the function:

f(a,b) = \frac{1}{2a\Gamma(1+1/b)}e^{-|(x-m)/a|^b}, -\infty < x < \infty

. where b is a shape parameter, a is a scale parameter, m is a location parameter and \Gamma represents the gamma function.

Value

a vector containing the values for the densities.


Rsubbotools documentation built on April 16, 2025, 5:10 p.m.