Statistics
| Revision:

root / branches / pthreads-737 / contrib / statslib / dunif.cpp @ 765

History | View | Annotate | Download (350 Bytes)

1
#include "statsLib.h"
2

    
3
/**
4
* @file dunif.cpp
5
* @brief Uniform distribution
6
* 
7
* This file contains the uniform distribution functions
8
* \ingroup STATLIB
9
* @author Chris Grandin, Steve Martell
10
* 
11
* @date 12/12/2011
12
* @remarks
13
*/
14

    
15
//uniform distribution
16
dvariable dunif(const dvariable& x, const double min, const double max)
17
{
18
        return log(max-min);
19
}