You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
- task: run_javascript_examples
status: na
- task: run_c_examples
status: na
- task: run_cpp_examples
status: na
- task: run_javascript_readme_examples
status: na
- task: run_c_benchmarks
status: na
- task: run_cpp_benchmarks
status: na
- task: run_fortran_benchmarks
status: na
- task: run_javascript_benchmarks
status: na
- task: run_julia_benchmarks
status: na
- task: run_python_benchmarks
status: na
- task: run_r_benchmarks
status: na
- task: run_javascript_tests
status: na
---
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/README.md
+105Lines changed: 105 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,111 @@ for ( i = 0; i < 10; i++ ) {
157
157
158
158
<!-- /.examples -->
159
159
160
+
<!-- C interface documentation. -->
161
+
162
+
* * *
163
+
164
+
<sectionclass="c">
165
+
166
+
## C APIs
167
+
168
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
#### stdlib_base_dists_hypergeometric_pmf( x, N, K, n )
187
+
188
+
Evaluates the probability mass function (PMF) for a hypergeometric distribution with population size `N`, subpopulation size `K`, and number of draws `n`.
189
+
190
+
```c
191
+
double out = stdlib_base_dists_hypergeometric_stdev( 16, 11, 4 );
192
+
// returns ~0.829
193
+
```
194
+
195
+
The function accepts the following arguments:
196
+
197
+
-**x**: `[in] double` input value.
198
+
-**N**: `[in] double` population size.
199
+
-**K**: `[in] double` subpopulation size.
200
+
-**n**: `[in] double` number of draws.
201
+
202
+
```c
203
+
doublestdlib_base_dists_hypergeometric_pmf ( const double x, const double N, const double K, const double n );
204
+
```
205
+
206
+
</section>
207
+
208
+
<!-- /.usage -->
209
+
210
+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments