# blnorm: Bernoulli-lognormal distribution In CaDENCE: Conditional Density Estimation Network Construction and Evaluation

## Description

Functions implementing the Bernoulli-lognormal distribution, in which zero values occur with probability `1-prob` and non-zero values follow a lognormal distribution with `meanlog` and `sdlog` parameters. `dblnorm` gives a probability density function (pdf), `pblnorm` gives the cumulative distribution function (cdf), `qblnorm` gives the quantile function (inverse cdf), and `rblnorm` is used for generating random variates.

## Usage

 ```1 2 3 4``` ```dblnorm(x, prob, meanlog, sdlog) pblnorm(q, prob, meanlog, sdlog) qblnorm(p, prob, meanlog, sdlog) rblnorm(n, prob, meanlog, sdlog) ```

## Arguments

 `x, q` vector of quantiles. `p` vector of cumulative probabilities. `n` number of random samples. `prob` probability of a non-zero value. `meanlog` meanlog parameter of the lognormal distribution. `sdlog` sdlog parameter of the lognormal distribution.

## Value

`dblnorm` gives the pdf, `pblnorm` gives the cdf, `qblnorm` gives the inverse cdf (or quantile function), and `rblnorm` generates random variates.

`dlnorm`, `bweibull`, `bpareto2`, `bgamma`
 `1` ``` plot(rblnorm(365, prob = 0.2, meanlog = 1, sdlog = 1), type = "h") ```