https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Weibull.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
17class Weibull : public Distribution
18{
19public:
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 Real & location, const Real & scale, const Real & shape);
29 static Real cdf(const Real & x, const Real & location, const Real & scale, const Real & shape);
30 static Real
31 quantile(const Real & p, const Real & location, const Real & scale, const Real & shape);
32
33protected:
35 const Real & _a;
36
38 const Real & _b;
39
41 const Real & _c;
42};
const std::vector< double > x
const Real p
Real scale
const InputParameters & parameters() const
A class used to generate a three-parameter Weibull distribution.
Definition Weibull.h:18
const Real & _a
The location parameter (a or low)
Definition Weibull.h:35
virtual Real pdf(const Real &x) const override
Definition Weibull.C:66
const Real & _c
The shape parameter (c or k)
Definition Weibull.h:41
virtual Real cdf(const Real &x) const override
Definition Weibull.C:72
static InputParameters validParams()
Definition Weibull.C:17
const Real & _b
The scale parameter (b or lambda)
Definition Weibull.h:38
virtual Real quantile(const Real &p) const override
Definition Weibull.C:78