Neutrosophic Uniform {ntsDists}R Documentation

Neutrosophic Uniform Distribution

Description

Density, distribution function, quantile function and random generation for the neutrosophic Uniform distribution of a continuous variable X with parameters a_N and b_N.

Usage

dnsUnif(x, min, max)

pnsUnif(q, min, max, lower.tail = TRUE)

qnsUnif(p, min, max)

rnsUnif(n, min, max)

Arguments

x

a vector or matrix of observations for which the pdf needs to be computed.

min

lower limits of the distribution. Must be finite.

max

upper limits of the distribution. Must be finite.

q

a vector or matrix of quantiles for which the cdf needs to be computed.

lower.tail

logical; if TRUE (default), probabilities are P(X \leq x); otherwise, P(X >x).

p

a vector or matrix of probabilities for which the quantile needs to be computed.

n

number of random values to be generated.

Details

The neutrosophic Uniform distribution with parameters a_N and b_N has the density

f_N(x)=\frac{1}{b_N-a_N}

for a_N \in (a_L, a_U) lower parameter interval, b_N \in (b_L,b_U), upper parameter interval.

Value

dnsUnif gives the density function

pnsUnif gives the distribution function

qnsUnif gives the quantile function

rnsUnif generates random variables from the neutrosophic Uniform Distribution.

References

Alhabib, R., Ranna, M. M., Farah, H., & Salama, A. A. (2018). Some neutrosophic probability distributions, Neutrosophic Sets and Systems, 22, 30-38.

Examples


dnsUnif(x = 1, min = c(0, 5), max = c(15, 20))
dnsUnif(x = c(6, 10), min = c(0, 5), max = c(15, 20))

punif(q = 1, min = c(0, 5), max = c(15, 20))
punif(q = c(6, 10), min = c(0, 5), max = c(15, 20))

qnsUnif(p = c(0.25, 0.5, 0.75), min = c(0, 5), max = c(15, 20))

rnsUnif(n = 10, min = c(0, 5), max = c(15, 20))


[Package ntsDists version 2.1.1 Index]