![]() |
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Include dependency graph for random.c:Go to the source code of this file.
Functions | |
| __clib_export f64 | clib_chisquare (u64 *values) |
| Compute the X2 test statistic for a vector of counts. More... | |
Variables | |
| u32 | standalone_random_default_seed = 1 |
| Default random seed for standalone version of library. More... | |
Random number support
Definition in file random.c.
Compute the X2 test statistic for a vector of counts.
Each value element corresponds to a histogram bucket.
Typical use-case: test the hypothesis that a set of octets are uniformly distributed (aka random).
In a 1-dimensional use-case, the result should be compared with the critical value from chi square tables with vec_len(values) - 1 degrees of freedom.
| [in] | values | vector of histogram bucket values |