# NegativeBinomialDistribution

## 说明

`R`成功次数$R>0$
`P`成功概率$0

## 属性

### 其他对象属性

• `data`:用于分布拟合的数据向量。

• `cens`:删失向量，如果没有，则为空。

• `freq`:频率向量，如果没有，则为空。

## 对象函数

 `cdf` 累积分布函数 `gather` Gather properties of Statistics and Machine Learning Toolbox object from GPU `icdf` 逆累积分布函数 `iqr` Interquartile range of probability distribution `mean` 概率分布的均值 `median` Median of probability distribution `negloglik` Negative loglikelihood of probability distribution `paramci` Confidence intervals for probability distribution parameters `pdf` 概率密度函数 `plot` Plot probability distribution object `proflik` Profile likelihood function for probability distribution `random` 随机数 `std` 概率分布的标准差 `truncate` Truncate probability distribution object `var` Variance of probability distribution

## 示例

`pd = makedist('NegativeBinomial')`
```pd = NegativeBinomialDistribution Negative Binomial distribution R = 1 P = 0.5 ```

`pd = makedist('NegativeBinomial','R',5,'P',.1)`
```pd = NegativeBinomialDistribution Negative Binomial distribution R = 5 P = 0.1 ```

`m = mean(pd)`
```m = 45 ```