File: normal.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (36 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download | duplicates (3)
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
The ti(normal_distribution<RealType = double>) is commonly used in science to
describe complex phenomena. When predicting or measuring variables, errors are
commonly assumed to be normally distributed.

It has two parameters, em(mean) and em(standard deviation).

Defined types:
       verb(    using result_type = RealType;

    struct param_type
    {
        explicit param_type(RealType mean = RealType(0),
                            RealType stddev = RealType(1));

        RealType mean() const;
        RealType stddev() const;
    };)

Constructors and members:
    itemization(
    itt(normal_distribution<>(RealType mean = 0, RealType stddev = 1))
        constructs a normal distribution with specified tt(mean) and tt(stddev)
        parameters. The default parameter values define the
        emi(standard normal distribution);
    itt(normal_distribution<>(param_type const &param))
        constructs a normal distribution according to the values stored in
        the tt(param) struct.
    itt(RealType mean() const)nl()
        returns the distribution's tt(mean) parameter;
    itt(RealType stddev() const)nl()
        returns the distribution's tt(stddev) parameter;
    itt(result_type min() const)nl()
        returns the lowest positive value of tt(result_type);
    itt(result_type max() const)nl()
        returns the maximum value of tt(result_type);
    )