FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
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... | |
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 |
Definition at line 64 of file random.c.