Class template student_t_distribution
boost::random::student_t_distribution
Synopsis
template<typename RealType = double>
class student_t_distribution {
public:
typedef RealType result_type;
typedef RealType input_type;
class param_type {
public:
typedef student_t_distribution distribution_type;
explicit param_type(RealType = 1.0);
RealType n() const;
template<typename CharT, typename Traits>
friend std::basic_ostream< CharT, Traits > &
operator<<(std::basic_ostream< CharT, Traits > &, const param_type &);
template<typename CharT, typename Traits>
friend std::basic_istream< CharT, Traits > &
operator>>(std::basic_istream< CharT, Traits > &, const param_type &);
friend bool operator==(const param_type &, const param_type &);
friend bool operator!=(const param_type &, const param_type &);
};
explicit student_t_distribution(RealType = 1.0);
explicit student_t_distribution(const param_type &);
template<typename URNG> RealType operator()(URNG &);
template<typename URNG>
RealType operator()(URNG &, const param_type &) const;
RealType n() const;
RealType min() const;
RealType max() const;
param_type param() const;
void param(const param_type &);
void reset();
template<typename CharT, typename Traits>
friend std::basic_ostream< CharT, Traits > &
operator<<(std::basic_ostream< CharT, Traits > &,
const student_t_distribution &);
template<typename CharT, typename Traits>
friend std::basic_istream< CharT, Traits > &
operator>>(std::basic_istream< CharT, Traits > &,
const student_t_distribution &);
friend bool operator==(const student_t_distribution &,
const student_t_distribution &);
friend bool operator!=(const student_t_distribution &,
const student_t_distribution &);
};
Description
Распределение Студенческого t является реальным ценным распределением с одним параметром n, количеством градусов свободы.
Он имеет
.
student_t_distribution
public
construct/copy/destruct
student_t_distribution
public member functions
template<typename URNG> RealType оператор()(URNG & urng;
Returns a random variate distributed согласно дистрибутиву.
- > ,>>>> >>>>> > >>> ,> >>>>>>>> парам_тип>>>>>>>>>>>
RealType n() const;
RealType min() const;
Возвращает наименьшее значение, которое может произвести дистрибутив.
RealType max() const;
Returns the largest value that the distribution can produce.
param_type param() const;
void param(const param_type & param);
Сетирует параметры распределения.
void перезагрузка();
Эффекты: последующее использование дистрибутива не зависит от значений, произведенных любым двигателем до ссылки на сброс.
student_t_distribution
friend functions