MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_normal_data

Function test_normal_data

src/datasets.rs:381–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379
380 #[test]
381 fn test_normal_data() {
382 let n = normal_builder([1,2,3,4]).add(0.0, 2.0).add(1.0, 1.0);
383
384 let data = n.take(5).collect::<Vec<Vec<f64>>>();
385 assert_eq!(data.len(), 5);
386 assert_eq!(data[0].len(), 2);
387 }
388
389 #[test]
390 fn test_mixture() {

Callers

nothing calls this directly

Calls 2

normal_builderFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected