https://mooseframework.inl.gov
StudentT.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Distribution.h"
13 
17 class StudentT : public Distribution
18 {
19 public:
21 
23 
24  virtual Real pdf(const Real & x) const override;
25  virtual Real cdf(const Real & x) const override;
26  virtual Real quantile(const Real & p) const override;
27 
28  static Real pdf(const Real & x, const unsigned int & dof);
29  static Real cdf(const Real & x, const unsigned int & dof);
30  static Real quantile(const Real & p, const unsigned int & dof);
31 
32 protected:
34  const unsigned int & _dof;
35 };
virtual Real cdf(const Real &x) const override
Definition: StudentT.C:60
virtual Real pdf(const Real &x) const override
Definition: StudentT.C:54
const unsigned int & _dof
Degrees of freedom.
Definition: StudentT.h:34
virtual Real quantile(const Real &p) const override
Definition: StudentT.C:66
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
StudentT(const InputParameters &parameters)
Definition: StudentT.C:24
const InputParameters & parameters() const
static InputParameters validParams()
Definition: StudentT.C:16
A class used to generate a Student&#39;s t distribution.
Definition: StudentT.h:17