Use array impl instead of vec

This commit is contained in:
2021-10-27 11:33:54 +02:00
parent 1eea1bfb71
commit 71b795d9ed
5 changed files with 7 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ fn nba_history() {
let mut model = ks::model::Binary::new(ks::model::binary::Observation::Probit);
for team in teams {
let kernel: Vec<Box<dyn ks::Kernel>> = vec![
let kernel: [Box<dyn ks::Kernel>; 2] = [
Box::new(ks::kernel::Constant::new(0.03)),
Box::new(ks::kernel::Matern32::new(0.138, 1.753 * seconds_in_year)),
];