Skip to main content

fitted_band

Function fitted_band 

Source
pub(crate) fn fitted_band(
    entry: &'static MachineEntry,
    file: &Config,
    resolved: &Config,
    key: &str,
    factor: f64,
    error: f64,
    sigmas: f64,
) -> Result<[f64; 3], &'static str>
Expand description

The value factor times that of key and its band [low, high] of sigmas times error (relative) either side, or the translation key of why it is not written: the file has no such key (cli-fit-write-no-key), a named part sets it (the file’s value is not the one the fit used: cli-fit-write-by-part), or the fitted value or its error is not usable (cli-fit-write-refused). A value or bound the machine’s readers refuse (a stiffness at or below 0) is pulled in to the nearest one they take.