()
| 74 | |
| 75 | #[test] |
| 76 | fn test_dendrogram_plot() { |
| 77 | let (prices, names) = load_prices_and_names(); |
| 78 | let mut hrp = HierarchicalRiskParity::new(); |
| 79 | hrp.allocate(&names, Some(&prices), None, None, None, true).unwrap(); |
| 80 | let dendrogram = hrp.plot_clusters(&names).unwrap(); |
| 81 | assert!(!dendrogram.icoord.is_empty()); |
| 82 | assert!(!dendrogram.dcoord.is_empty()); |
| 83 | assert!(!dendrogram.ivl.is_empty()); |
| 84 | assert!(!dendrogram.leaves.is_empty()); |
| 85 | assert!(!dendrogram.color_list.is_empty()); |
| 86 | } |
| 87 | |
| 88 | #[test] |
| 89 | fn test_quasi_diagonalization() { |
nothing calls this directly
no test coverage detected