nray {neutrostat} | R Documentation |
Neutrosophic Rayleigh Distribution with Characteristics
Description
Computes various properties of the Neutrosophic Rayleigh distribution, including its density, cumulative distribution function (CDF), quantiles,random numbers with summary statistics,PDF and CDF plots of the distribution.
Usage
dnray(x, scale_l, scale_u)
pnray(q, scale_l, scale_u)
qnray(p, scale_l, scale_u)
rnray(n, scale_l, scale_u, stats=FALSE)
plot_npdfray(scale_l, scale_u, x = c(0, 5),color.fill = "lightblue", color.line = "blue",
title = "PDF Neutrosophic Rayleigh Distribution",
x.label = "x", y.label = "Density")
plot_ncdfray(scale_l, scale_u, x = c(0, 5),color.fill = "lightblue", color.line = "blue",
title = "CDF Neutrosophic Rayleigh Distribution",
x.label = "x", y.label = "Cumulative Probability")
Arguments
x |
A numeric vector of observations for which the function will compute the corresponding distribution values. |
n |
number of random generated values |
scale_l |
A positive numeric value representing the lower bound of the scale parameter of the Neutrosophic Rayleigh distribution. |
scale_u |
A positive numeric value representing the upper bound of the scale parameter of the Neutrosophic Rayleigh distribution. This must be greater than or equal to |
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 |
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. |
Details
The function computes various properties of the Neutrosophic Rayleigh 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 Rayleigh distribution. Moreover basic plots of PDF and CDF can be visualized.
Value
dnray
returns the PDF values
pnray
returns the lower tail CDF values
qnray
returns the quantile values
rnray
return random values with summary statistics of the simulated data
plot_npdfexp
returns PDF plot at given values of scale parameter
plot_ncdfexp
returns CDF plot at given values of scale parameter
Author(s)
Zahid Khan
References
Khan, Z., Gulistan, M., Kausar, N., Park, C. (2021). Neutrosophic Rayleigh Model With Some Basic Characteristics and Engineering Applications. IEEE Access, 9, 71277-71283. doi:10.1109/ACCESS.2021.3078150.
Examples
# random number with summary statistics
rnray(10, scale_l=2, scale_u=4, stats = TRUE)
# PDF values
x <- c(1, 2, 3) # Values at which to evaluate the PDF
scale_l <- 0.5
scale_u <- 2.0
dnray(x, scale_l, scale_u)
# CDF values
q <- c(2, 3, 3.5)
scale_l <- 0.5
scale_u <- 2.0
pnray(q, scale_l, scale_u)
# Quantile values
p <- 0.5 # Probability at which to evaluate the quantile
scale_l <- 0.5
scale_u <- 2.0
qnray(p, scale_l, scale_u)
# PDF PLOT
scale_l <- 0.5 # Minimum rate
scale_u <- 2 # Maximum rate
plot_npdfray(scale_l, scale_u, x = c(0, 3))
# CDF PLOT
scale_l <- 0.5 # Minimum rate
scale_u <- 2.0 # Maximum rate
plot_ncdfray(scale_l, scale_u, x = c(0, 3),title = "")