File: uniformreal.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,288 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(uniform_real_distribution<RealType = double>) can be used to select
tt(RealType) values randomly from a range of uniformly distributed
tt(RealType) values.

It has two parameters, tt(a) and tt(b), specifying, respectively, the
half-open range of values (rangett(a, b)) that can be returned by the
distribution.

Defined types:
        verb(    using result_type = RealType;

    struct param_type
    {
        explicit param_type(RealType a = 0, RealType b = max(RealType));

        RealType a() const;
        RealType b() const;
    };)

Constructors and members:
    itemization(
    itt(uniform_real_distribution<>(RealType a = 0, RealType b = max(RealType)))
        constructs a uniform_real distribution for the specified range of
        values.
    itt(uniform_real_distribution<>(param_type const &param))
        constructs a uniform_real distribution according to the values stored in
        the tt(param) struct.
    itt(RealType a() const)nl()
        returns the distribution's tt(a) parameter;
    itt(RealType b() const)nl()
        returns the distribution's tt(b) parameter;
    itt(result_type min() const)nl()
        returns the distribution's tt(a) parameter;
    itt(result_type max() const)nl()
        returns the distribution's tt(b) parameter;
    )