Skip to main content

validate_bite_inputs

Function validate_bite_inputs 

Source
pub fn validate_bite_inputs(
    lower: &[f64],
    upper: &[f64],
    init: Option<&[f64]>,
    params: &BiteParams,
    depth: i32,
) -> Result<(), String>
Expand description

Validate the dimensions and numeric domain required by BiteOpt.

ยงErrors

Returns an error if the bound slices are empty or of unequal length, if any bound is non-finite or does not satisfy lower <= upper, if init is supplied with the wrong length or non-finite values, if the parameters are outside their valid ranges, or if the population count m exceeds 36.