|
template<domain D> |
D float32 | chiSquared (D uint32[[1]] observed, D float32[[1]] p) |
|
template<domain D> |
D float64 | chiSquared (D uint64[[1]] observed, D float64[[1]] p) |
|
Perform Pearson's chi-squared goodness of fit test.
- Note
- D - any protection domain
-
Supported types - uint32 / uint64
- Parameters
-
observed | - observed frequency of each class |
p | - theoretical probability of each class |
- Returns
- returns chi-squared test statistic
◆ chiSquared() [1/2]
D float32 chiSquared |
( |
D uint32[[1]] |
observed, |
|
|
D float32[[1]] |
p |
|
) |
| |
◆ chiSquared() [2/2]
D float64 chiSquared |
( |
D uint64[[1]] |
observed, |
|
|
D float64[[1]] |
p |
|
) |
| |