pub fn validate_response(y: &[f64], n: usize) -> Result<(), FdarError>Expand description
Validate that a response vector matches the data row count.
§Errors
Returns FdarError::InvalidDimension if y.len() != n.
§Examples
use fdars_core::validation::validate_response;
validate_response(&[1.0, 2.0, 3.0], 3).unwrap();
assert!(validate_response(&[1.0, 2.0], 3).is_err());