pub trait MatrixValidate {
// Required methods
fn is_bounds_valid(&self) -> Result<(), ValidationError>;
fn is_reference_ideal_bounds_valid(
&self,
bounds: &DMatrix<f64>,
) -> Result<(), ValidationError>;
fn is_within_bounds(
&self,
bounds: &DMatrix<f64>,
) -> Result<(), ValidationError>;
}Required Methods§
Sourcefn is_bounds_valid(&self) -> Result<(), ValidationError>
fn is_bounds_valid(&self) -> Result<(), ValidationError>
Validates the bounds for each criteria follows the form $[min, max]$.
Sourcefn is_reference_ideal_bounds_valid(
&self,
bounds: &DMatrix<f64>,
) -> Result<(), ValidationError>
fn is_reference_ideal_bounds_valid( &self, bounds: &DMatrix<f64>, ) -> Result<(), ValidationError>
Validates the reference ideal array aligns with the given bounds for each criterion.
Validations:
- Ensure
ref_idealhas a shape of[M, 2], whereMis the number of criteria. - Ensure shape of
ref_idealandboundsare the same. - Verifies all
ref_idealvalues lie within theboundsarray and that theref_idealvalues are in scending order (i.e.,[min, max]).
Sourcefn is_within_bounds(&self, bounds: &DMatrix<f64>) -> Result<(), ValidationError>
fn is_within_bounds(&self, bounds: &DMatrix<f64>) -> Result<(), ValidationError>
Ensures a DMatrix is within the specified bounds.