# LoguniformDistribution

Loguniform probability distribution object

## Description

A `LoguniformDistribution` object consists of parameters and a model description for a loguniform probability distribution, also referred to as a reciprocal distribution.

The loguniform distribution is a continuous distribution. Its density function is proportional to the reciprocal of the variable value within the support of the distribution (lower and upper limits).

The loguniform distribution uses the following parameters.

ParameterDescriptionSupport
`Lower`Lower parameter$0<\text{Lower}<\text{Upper}$
`Upper`Upper parameter$\text{Lower}<\text{Upper}<\infty$

## Creation

Create a `LogUniformDistribution` probability distribution object with specified parameter values by using `makedist`.

## Properties

expand all

### Distribution Parameters

Lower limit of the support of the loguniform distribution, specified as a scalar value.

Data Types: `single` | `double`

Upper limit of the support of the loguniform distribution, specified as a scalar value greater than `Lower`.

Data Types: `single` | `double`

### Distribution Characteristics

This property is read-only.

Logical flag for truncated distribution, specified as a logical value. If `IsTruncated` equals `0`, the distribution is not truncated. If `IsTruncated` equals `1`, the distribution is truncated.

Data Types: `logical`

This property is read-only.

Number of parameters for the probability distribution, specified as a positive integer value.

Data Types: `double`

This property is read-only.

Distribution parameter values, specified as a vector of scalar values.

Data Types: `single` | `double`

This property is read-only.

Truncation interval for the probability distribution, specified as a vector of scalar values containing the lower and upper truncation boundaries.

Data Types: `single` | `double`

### Other Object Properties

This property is read-only.

Probability distribution name, specified as a character vector.

Data Types: `char`

This property is read-only.

Distribution parameter descriptions, specified as a cell array of character vectors. Each cell contains a short description of one distribution parameter.

Data Types: `char`

This property is read-only.

Distribution parameter names, specified as a cell array of character vectors.

Data Types: `char`

## Object Functions

 `cdf` Cumulative distribution function `icdf` Inverse cumulative distribution function `iqr` Interquartile range of probability distribution `mean` Mean of probability distribution `median` Median of probability distribution `pdf` Probability density function `random` Random numbers `std` Standard deviation of probability distribution `truncate` Truncate probability distribution object `var` Variance of probability distribution

## Examples

collapse all

Create a loguniform distribution object using the default parameter values.

`pd = makedist('Loguniform')`
```pd = LoguniformDistribution Loguniform distribution Lower = 1 Upper = 4 ```

Create uniform distribution object by specifying parameter values.

`pd = makedist('Loguniform','Lower',2,'Upper',6)`
```pd = LoguniformDistribution Loguniform distribution Lower = 2 Upper = 6 ```

## Version History

Introduced in R2021b