首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::student_t_distribution

Defined in header <random>

template< class RealType = double > class student_t_distribution;

(since C++11)

产生随机浮点值x,按概率密度函数分布:p%28 x n%29=

*。

辛nπ

··

Γ( n+1 2 )

n+1

2

n+1

Γ%28 n 2%29 n2

n

·准

二次

亚单位1+

X2

*。

n

二次

二次

二...-

n+1

*。

二次

其中,n称为自由度估计平均给定n+1独立测量值的未知正态分布值,每一次都有未知标准差的加性误差,如在物理测量中。或者,当估计具有未知标准差的正态分布的未知均值时,给n+1样本。

std::student_t_distribution满足…的所有要求RandomNumberDistribution...

模板参数

RealType

-

The result type generated by the generator. The effect is undefined if this is not one of float, double, or long double.

成员类型

Member type

Definition

result_type

RealType

param_type

the type of the parameter set, see RandomNumberDistribution.

成员函数

(constructor)

constructs new distribution (public member function)

reset

resets the internal state of the distribution (public member function)

世代

运算符%28%29在分布%28公共成员函数%29中生成下一个随机数。

特征

n返回n个分布参数%28自由度%29%28公共成员函数%29

Param获取或设置分布参数对象%28公共成员函数%29

min返回最小潜在生成值%28公共成员函数%29

MAX返回最大潜在生成值%28公共成员函数%29

非会员职能

operator==operator!=

compares two distribution objects (function)

operator<<operator>>

performs stream input and output on pseudo-random number distribution (function template)

外部链接

学生%27s t-分布。来自MathWorld的一个Wolfram Web资源。

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券