Learn R Programming

neutrostat (version 0.0.2)

nexp: Neutrosophic Exponential Distribution with Characteristics

Description

Computes various properties of the Neutrosophic Exponential distribution, including its density, cumulative distribution function (CDF), quantiles,random numbers with summary statistics,PDF and CDF plots of the distribution.

Usage

dnexp(x, rate_l, rate_u)

pnexp(q, rate_l, rate_u)

qnexp(p, rate_l, rate_u)

rnexp(n, rate_l, rate_u, stats=FALSE)

plot_npdfexp(rate_l, rate_u, x = c(0, 5), color.fill = "lightblue", color.line = "blue", title = "PDF Neutrosophic Exponential Distribution", x.label = "x", y.label = "Density")

plot_ncdfexp(rate_l, rate_u, x = c(0, 5), color.fill = "lightblue", color.line = "blue", title = "CDF Neutrosophic Exponential Distribution", x.label = "x", y.label = "Cumulative Probability")

Value

dnexp returns the PDF values

pnexp returns the lower tail CDF values.

qnexp returns the quantile values

rnexp return random values with summary statistics of the simulated data

plot_npdfexp returns PDF plot at given values of rate parameter

plot_ncdfexp returns CDF plot at given values of rate parameter

Arguments

x

A numeric vector of observations for which the function will compute the corresponding distribution values.

n

number of random generated values

rate_l

A positive numeric value representing the lower bound of the rate parameter of the Neutrosophic Exponential distribution.

rate_u

A positive numeric value representing the upper bound of the rate parameter of the Neutrosophic Exponential distribution. This must be greater than or equal to rate_l.

p

A vector of probabilities for which the function will compute the corresponding quantile values

q

A vector of quantiles for which the function will compute the corresponding CDF values

stats

Logical; if TRUE, the function returns summary statistics of the generated random data (e.g., mean, standard deviation, quantiles, skewness, and kurtosis).

color.fill

A string representing the color for neutrosophic region.

color.line

A string representing the color used for the line of the PDF or CDF in the plots.

title

A string representing the title of the plot.

x.label

A string representing the label for the x-axis.

y.label

A string representing the label for the y-axis.

Author

Zahid Khan

Details

The function computes various properties of the Neutrosophic Exponential distribution. Depending on the function variant used (e.g., density, CDF, quantiles), it will return the corresponding statistical measure for each input value of x in case of random number generation from Neutrosophic Exponential distribution. Moreover basic plots of PDF and CDF can be visualized.

References

Duan, W., Q., Khan, Z., Gulistan, M., Khurshid, A. (2021). Neutrosophic Exponential Distribution: Modeling and Applications for Complex Data Analysis, Complexity, 2021, 1-8.doi:10.1155/2021/5970613

Examples

Run this code

# random number with summary statistics
rnexp(10, rate_l=2, rate_u=4, stats = TRUE)

# PDF values
x <- c(1, 2, 3)  # Values at which to evaluate the PDF
rate_l <- 0.5
rate_u <- 2.0
dnexp(x, rate_l, rate_u)

# CDF values
q <- c(2, 3, 3.5)
rate_l <- 0.5
rate_u <- 2.0
pnexp(q, rate_l, rate_u)

# Quantile values

p <- 0.5    # Probability at which to evaluate the quantile
rate_l <- 0.5
rate_u <- 2.0
qnexp(p, rate_l, rate_u)

# PDF PLOT

plot_npdfexp(rate_l = 1, rate_u = 2, x = c(0, 5))

# CDF PLOT

 plot_ncdfexp(rate_l = 1, rate_u = 2, x = c(0, 5))

Run the code above in your browser using DataLab