File: repl.txt

package info (click to toggle)
node-stdlib 0.0.96%2Bds1%2B~cs0.0.429-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 421,476 kB
  • sloc: javascript: 1,562,831; ansic: 109,702; lisp: 49,823; cpp: 27,224; python: 7,871; sh: 6,807; makefile: 6,089; fortran: 3,102; awk: 387
file content (98 lines) | stat: -rw-r--r-- 2,564 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

{{alias}}( [N, K, n] )
    Returns a hypergeometric distribution object.

    Parameters
    ----------
    N: integer (optional)
        Population size. Must be a nonnegative integer larger than or equal to
        `K` and `n`.

    K: integer (optional)
        Subpopulation size. Must be a nonnegative integer smaller than or equal
        to `N`.

    n: integer (optional)
        Number of draws. Must be a nonnegative integer smaller than or equal to
        `N`.

    Returns
    -------
    hypergeometric: Object
        Distribution instance.

    hypergeometric.N: number
        Population size. If set, the value must be a nonnegative integer larger
        than or equal to `K` and `n`.

    hypergeometric.K: number
        Subpopulation size. If set, the value must be a nonnegative integer
        smaller than or equal to `N`.

    hypergeometric.n: number
        Number of draws. If set, the value must be a nonnegative integer
        smaller than or equal to `N`.

    hypergeometric.kurtosis: number
        Read-only property which returns the excess kurtosis.

    hypergeometric.mean: number
        Read-only property which returns the expected value.

    hypergeometric.mode: number
        Read-only property which returns the mode.

    hypergeometric.skewness: number
        Read-only property which returns the skewness.

    hypergeometric.stdev: number
        Read-only property which returns the standard deviation.

    hypergeometric.variance: number
        Read-only property which returns the variance.

    hypergeometric.cdf: Function
        Evaluates the cumulative distribution function (CDF).

    hypergeometric.logpmf: Function
        Evaluates the natural logarithm of the probability mass function (PMF).

    hypergeometric.pmf: Function
        Evaluates the probability mass function (PMF).

    hypergeometric.quantile: Function
        Evaluates the quantile function at probability `p`.

    Examples
    --------
    > var hypergeometric = {{alias}}( 100, 70, 20 );
    > hypergeometric.N
    100.0
    > hypergeometric.K
    70.0
    > hypergeometric.n
    20.0
    > hypergeometric.kurtosis
    ~-0.063
    > hypergeometric.mean
    14.0
    > hypergeometric.mode
    14.0
    > hypergeometric.skewness
    ~-0.133
    > hypergeometric.stdev
    ~1.842
    > hypergeometric.variance
    ~3.394
    > hypergeometric.cdf( 2.9 )
    ~0.0
    > hypergeometric.logpmf( 10 )
    ~-3.806
    > hypergeometric.pmf( 10 )
    ~0.022
    > hypergeometric.quantile( 0.8 )
    16.0

    See Also
    --------