pub struct ParamSpec {
pub name: String,
pub min: f64,
pub max: f64,
}Expand description
单个率定参数:JSON 字段名 + 区间(归一化 x∈[0,1] 映射到 [min,max])。
One free parameter for calibration. The optimiser searches in normalised
space x ∈ [0, 1]; vector_to_json maps x back to the physical range
via value = min + x · (max − min) and writes it into the JSON field
identified by name. The remaining fields of the
model’s params JSON are inherited unchanged from base_params.
Fields§
§name: StringJSON field name to override inside the model’s params object (must
match the Serialize field name of the model’s Params struct, e.g.
"sm" or "kg" for hydro-xinanjiang::XinanjiangParams).
min: f64Lower bound (inclusive) — value when x = 0.
max: f64Upper bound (inclusive) — value when x = 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more