pull/26/head
AlessandroBregoli 3 years ago
parent c178862664
commit 490fe4e010
  1. 5
      src/params.rs

@ -85,10 +85,15 @@ impl DiscreteStatesContinousTimeParams {
}
}
///Getter function for CIM
pub fn get_cim(&self) -> &Option<Array3<f64>> {
&self.cim
}
///Setter function for CIM
///This function check if the cim is valid using the validate_params method.
///- **Valid cim inserted**: it substitute the CIM in self.cim and return Ok(())
///- **Invalid cim inserted**: it replace the self.cim value with None and it retu ParamsError
pub fn set_cim(&mut self, cim: Array3<f64>) -> Result<(), ParamsError>{
self.cim = Some(cim);
match self.validate_params() {

Loading…
Cancel
Save