use nalgebra::DMatrix;
use strafe_trait::{Assumption, StatisticalEstimator};
use strafe_type::ModelMatrix;
use crate::tests::z_coefficient::{ZCoefficient, ZCoefficientBuilder};
impl StatisticalEstimator for ZCoefficientBuilder {
type Input = (ModelMatrix, DMatrix<f64>, DMatrix<f64>, DMatrix<f64>);
type Output = Result<Vec<ZCoefficient>, Box<dyn std::error::Error>>;
fn assumptions() -> Vec<Box<dyn Assumption>> {
Vec::new()
}
fn estimate(&self, input: &Self::Input) -> Self::Output {
self.build(input)
}
}