File: lognormal.yo

package info (click to toggle)
c%2B%2B-annotations 10.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,536 kB
  • ctags: 3,247
  • sloc: cpp: 19,157; makefile: 1,521; ansic: 165; sh: 128; perl: 90
file content (40 lines) | stat: -rw-r--r-- 1,390 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
The ti(lognormal_distribution<RealType = double>) is a probability
distribution of a random variable whose logarithm is normally distributed. If
a random variable tt(X) has a normal distribution, then tt(Y = e)sups(X) has a
log-normal distribution.

It has two parameters, em(m) and em(s) representing, respectively, the mean
and standard deviation of tt(ln(X)).


Defined types:
        verb(
    typedef RealType result_type;

    struct param_type
    {
        explicit param_type(RealType m = RealType(0),
                            RealType s = RealType(1));

        RealType m() const;
        RealType s() const;
    };
            )

Constructor and members:
    itemization(
    itt(lognormal_distribution<>(RealType m = 0, RealType s = 1))
       constructs a log-normal distribution for a random variable whose mean
        and standard deviation is, respectively, tt(m) and tt(s).
    itt(lognormal_distribution<>(param_type const &param)) constructs a
        log-normal distribution according to the values stored in the
        tt(param) struct.
    itt(RealType m() const)nl()
        returns the distribution's tt(m) parameter;
    itt(RealType stddev() const)nl()
        returns the distribution's tt(s) parameter;
    itt(result_type min() const)nl()
        returns 0;
    itt(result_type max() const)nl()
        returns the maximum value of tt(result_type);
    )