chrono::ChWeibullDistribution Class Reference
Description
Class that generates a Weibull distribution.
It can be used for example to describe particle size distribution, as in the subcase of Rosin & Rammler distribution.
#include <ChRandom.h>
Inheritance diagram for chrono::ChWeibullDistribution:

Collaboration diagram for chrono::ChWeibullDistribution:

Public Member Functions | |
ChWeibullDistribution (double shape_param, double scale_param) | |
Create a Weibull distribution with assigned shape and scale parameters. | |
virtual double | GetRandom () override |
Compute a random value whose probability density is the Weibull distribution. | |
double | GetShapeParam () const |
double | GetScaleParam () const |
Constructor & Destructor Documentation
◆ ChWeibullDistribution()
chrono::ChWeibullDistribution::ChWeibullDistribution | ( | double | shape_param, |
double | scale_param ) |
Create a Weibull distribution with assigned shape and scale parameters.
Notes:
- the larger the scale, the more horizontally stretched is the distribution
- for shape param < 1, there is a vertical peak at 0
- for shape param = 1, you get an exponential distribution
- for shape param > 1, you get an asymmetric bell shape
Member Function Documentation
◆ GetRandom()
|
overridevirtual |
Compute a random value whose probability density is the Weibull distribution.
Implements chrono::ChDistribution.
The documentation for this class was generated from the following files:
- C:/M/B/src/chrono-9.0.1/src/chrono/core/ChRandom.h
- C:/M/B/src/chrono-9.0.1/src/chrono/core/ChRandom.cpp