# mean

## 语法

``m = mean(pd)``

## 说明

``m = mean(pd)` 返回概率分布 `pd` 的均值 `m`。`

## 示例

```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] ```

`m = mean(pd)`
```m = 75.0083 ```

`pd = makedist('Weibull','A',5,'B',2)`
```pd = WeibullDistribution Weibull distribution A = 5 B = 2 ```

`mean = mean(pd)`
```mean = 4.4311 ```

`pd = makedist('Uniform','lower',-3,'upper',5)`
```pd = UniformDistribution Uniform distribution Lower = -3 Upper = 5 ```

`m = mean(pd)`
```m = 1 ```

```load carsmall; pd = fitdist(MPG,'Kernel')```
```pd = KernelDistribution Kernel = normal Bandwidth = 4.11428 Support = unbounded ```

`mean(pd)`
```ans = 23.7181 ```

## 输入参数

`BetaDistribution``makedist``fitdist`分布拟合器
`BinomialDistribution``makedist``fitdist`分布拟合器
`BirnbaumSaundersDistribution``makedist``fitdist`分布拟合器
`BurrDistribution``makedist``fitdist`分布拟合器
`ExponentialDistribution``makedist``fitdist`分布拟合器
`ExtremeValueDistribution``makedist``fitdist`分布拟合器
`GammaDistribution``makedist``fitdist`分布拟合器
`GeneralizedExtremeValueDistribution``makedist``fitdist`分布拟合器
`GeneralizedParetoDistribution``makedist``fitdist`分布拟合器
`HalfNormalDistribution``makedist``fitdist`分布拟合器
`InverseGaussianDistribution``makedist``fitdist`分布拟合器
`KernelDistribution``fitdist`分布拟合器
`LogisticDistribution``makedist``fitdist`分布拟合器
`LoglogisticDistribution``makedist``fitdist`分布拟合器
`LognormalDistribution``makedist``fitdist`分布拟合器
`LoguniformDistribution``makedist`
`MultinomialDistribution``makedist`
`NakagamiDistribution``makedist``fitdist`分布拟合器
`NegativeBinomialDistribution``makedist``fitdist`分布拟合器
`NormalDistribution``makedist``fitdist`分布拟合器
`PiecewiseLinearDistribution``makedist`
`PoissonDistribution``makedist``fitdist`分布拟合器
`RayleighDistribution``makedist``fitdist`分布拟合器
`RicianDistribution``makedist``fitdist`分布拟合器
`StableDistribution``makedist``fitdist`分布拟合器
`tLocationScaleDistribution``makedist``fitdist`分布拟合器
`TriangularDistribution``makedist`
`UniformDistribution``makedist`
`WeibullDistribution``makedist``fitdist`分布拟合器