()
| 388 | |
| 389 | #[test] |
| 390 | fn test_mixture() { |
| 391 | |
| 392 | let seed = [1, 2, 3, 4]; |
| 393 | let m = mixture_builder() |
| 394 | .add(3, normal_builder(seed).add(1.0, 0.5).add(2.0, 1.0)) |
| 395 | .add(5, normal_builder(seed).add(3.0, 0.5).add(4.0, 1.0)) |
| 396 | .add(8, normal_builder(seed).add(2.0, 0.5).add(7.0, 1.0)) |
| 397 | .as_matrix(); |
| 398 | assert_eq!(m.rows(), 16); |
| 399 | assert_eq!(m.cols(), 3); |
| 400 | // TODO more tests |
| 401 | } |
| 402 | |
| 403 | } |
nothing calls this directly
no test coverage detected