summaryrefslogtreecommitdiffstats
path: root/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.f/ctor_double_double.pass.cpp
blob: 1dd628b625aafbd159fc2984335b877fa55a2be1 (plain)
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 LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <random>

// template<class RealType = double>
// class fisher_f_distribution

// explicit fisher_f_distribution(result_type alpha = 0, result_type beta = 1);

#include <random>
#include <cassert>

int main()
{
    {
        typedef std::fisher_f_distribution<> D;
        D d;
        assert(d.m() == 1);
        assert(d.n() == 1);
    }
    {
        typedef std::fisher_f_distribution<> D;
        D d(14.5);
        assert(d.m() == 14.5);
        assert(d.n() == 1);
    }
    {
        typedef std::fisher_f_distribution<> D;
        D d(14.5, 5.25);
        assert(d.m() == 14.5);
        assert(d.n() == 5.25);
    }
}