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. More...
 
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

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/core/ChRandom.h
  • /builds/uwsbel/chrono/src/chrono/core/ChRandom.cpp