本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

均匀分布(连续)

计算连续均匀分布,生成该分布的随机样本

Statistics and Machine Learning Toolbox™ 提供了几种处理均匀分布的方法。

  • 通过指定参数值创建概率分布对象 UniformDistribution。然后使用对象函数来计算分布、生成随机数等。

  • 将分布特定的函数与指定的分布参数结合使用。分布特定的函数可以接受多种均匀分布的参数。

  • 将一般分布函数(cdficdfpdfrandom)与指定的分布名称 ('Uniform') 和参数结合使用。

要了解均匀分布,请参阅Uniform Distribution (Continuous)

对象

UniformDistributionUniform probability distribution object

函数

全部展开

创建 UniformDistribution 对象

makedistCreate probability distribution object

使用 UniformDistribution 对象

cdf累积分布函数
icdfInverse cumulative distribution function
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
pdf概率密度函数
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
rand均匀分布的随机数
unifcdfContinuous uniform cumulative distribution function
unifpdfContinuous uniform probability density function
unifinvContinuous uniform inverse cumulative distribution function
unifitContinuous uniform parameter estimates
unifstatContinuous uniform mean and variance
unifrndContinuous uniform random numbers
mleMaximum likelihood estimates
disttoolInteractive density and distribution plots
概率分布函数Interactive density and distribution plots
qqplotQuantile-quantile plot
randtoolInteractive random number generation

主题

Uniform Distribution (Continuous)

The uniform distribution (also called the rectangular distribution) is notable because it has a constant probability distribution function between its two bounding parameters.

Generate Random Numbers Using Uniform Distribution Inversion

This example shows how to generate random numbers using the uniform distribution inversion method.