You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Probabilities Class > Probabilities Methods > UniformPDF Method > Probabilities.UniformPDF Method (double, double, double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Probabilities.UniformPDF Method (double, double, double)

Uniform probability density function (PDF).

Syntax
C#
Visual Basic
public static double UniformPDF(double x, double a, double b);
Parameters 
Description 
double x 
Distribution domain, real value on closed interval [a,b]. 
double a 
Distribution parameter, real value, defining distribution lower bound. 
double b 
Distribution parameter, real value, defining distribution upper bound. 

the uniform probability density function (PDF) for value x using the parameters a and b. The parameter a must be smaller than parameter b, otherwise the result is NAN.

The uniform probability density function is defined by the following equation: 

 

where a and b define the interval on which uniform CDF is defined. Uniform distribution is perhaps the simplest distribution with which to work. It can be used do describe processes in which the events occur with equal or uniform probability.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!