Make API a bit prettier

This commit is contained in:
2022-04-27 09:06:29 +02:00
parent aa8580970a
commit a8cef3806a
8 changed files with 42 additions and 32 deletions

View File

@@ -54,7 +54,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let seconds_in_year = 365.25 * 24.0 * 60.0 * 60.0;
let mut model = ks::model::Binary::new(ks::model::binary::Observation::Probit);
let mut model = ks::model::Binary::probit();
for team in teams {
let kernel: [Box<dyn ks::Kernel>; 2] = [