I have created a Cumulative Distribution Function (CDF) from a given Probability Density Function (PDF) as

```
library(kde1d)
x=c(6023,4860,5895,6239,4177,13235,5093,
2819,11982,3397,5298,7703,3853,6551,2290,
4175, 6911, 8386,6990, 5840 ,10263 , 7022,
5728, 15335, 11197 ,22322 ,13602 ,12310, 15575 ,19383)
fit <- kde1d(x,bw = 1681)
plot(NULL, xlim = c(0, 25000), ylim = c(0, 1), axes = FALSE,
xlab = "Rainfall)",
ylab = expression("Probability"))
axis(1, at = seq(0, 25000, by=5000))
axis(2, at = seq(0, 1, by=0.1))
curve(pkde1d(x, fit),
add = TRUE, col = "black", lwd = 1.5
)
```

How can I get minimum and maximum values from this CDF?

I am hoping this is the maximum value.

```
qkde1d(1, fit)
```

However, the minimum value with this approach of

```
qkde1d(0, fit)
```

gave me a negative value.

I am expecting the minimum value will be closer to the min value of X i.e.,

```
min(x)
```