# NormalDistribution

## 说明

`NormalDistribution` 对象由正态概率分布的参数、模型描述和样本数据组成。

`mu` (μ)均值$-\infty <\mu <\infty$
`sigma` (σ)标准差$\sigma \ge 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('Normal')`
```pd = NormalDistribution Normal distribution mu = 0 sigma = 1 ```

`pd = makedist('Normal','mu',75,'sigma',10)`
```pd = NormalDistribution Normal distribution mu = 75 sigma = 10 ```

`r = iqr(pd)`
```r = 13.4898 ```

```load examgrades x = grades(:,1);```

`pd = fitdist(x,'Normal')`
```pd = NormalDistribution Normal distribution mu = 75.0083 [73.4321, 76.5846] sigma = 8.7202 [7.7391, 9.98843] ```