Added tests to constant kernel

This commit is contained in:
2020-12-19 13:39:12 +01:00
parent aca4284ddd
commit 2708403923
8 changed files with 113 additions and 11 deletions

View File

@@ -20,6 +20,10 @@ impl Matern32 {
}
impl Kernel for Matern32 {
fn k_mat(&self, _ts1: &[f64], _ts2: Option<&[f64]>) -> ArrayD<f64> {
unimplemented!();
}
fn k_diag(&self, ts: &[f64]) -> Array1<f64> {
Array1::ones(ts.len()) * self.var
}