pub trait FunctionValidator {
// Required methods
fn validate_mathematical_correctness(
&self,
name: &str,
test_points: &[(Vec<f64>, f64)],
) -> ValidationResult;
fn validate_performance(
&self,
name: &str,
benchmark_size: usize,
) -> ValidationResult;
fn validate_numerical_stability(
&self,
name: &str,
edge_cases: &[f64],
) -> ValidationResult;
}Expand description
Trait for validating function implementations
This trait provides a framework for validating that function implementations meet mathematical correctness and performance requirements.
Required Methods§
Sourcefn validate_mathematical_correctness(
&self,
name: &str,
test_points: &[(Vec<f64>, f64)],
) -> ValidationResult
fn validate_mathematical_correctness( &self, name: &str, test_points: &[(Vec<f64>, f64)], ) -> ValidationResult
Validate mathematical correctness of a function
Sourcefn validate_performance(
&self,
name: &str,
benchmark_size: usize,
) -> ValidationResult
fn validate_performance( &self, name: &str, benchmark_size: usize, ) -> ValidationResult
Validate performance characteristics
Sourcefn validate_numerical_stability(
&self,
name: &str,
edge_cases: &[f64],
) -> ValidationResult
fn validate_numerical_stability( &self, name: &str, edge_cases: &[f64], ) -> ValidationResult
Validate numerical stability