pub struct EconomicsInterval {
pub level_bp: u32,
pub low: f64,
pub high: f64,
pub method: String,
pub resamples: u32,
pub seed: u64,
}Expand description
A bootstrap interval, with everything needed to reproduce it.
use majordomus_cli::economics::model::EconomicsInterval;
let i: EconomicsInterval = serde_json::from_value(serde_json::json!({
"level_bp": 9500, "low": 0.21, "high": 0.38,
"method": "bootstrap percentile of the median", "resamples": 10000, "seed": 20260924
}))
.unwrap();
assert!(i.low <= i.high);
assert_eq!(serde_json::to_value(&i).unwrap()["seed"], 20260924, "the seed travels with it");Fields§
§level_bp: u32Confidence in basis points.
low: f64Lower bound.
high: f64Upper bound.
method: StringHow it was computed: a cluster bootstrap over tasks for every metric over pairs or runs, whose repetitions of one task are not independent, and an independent bootstrap over seeds for the context suite.
resamples: u32Resamples.
seed: u64Generator seed.
Trait Implementations§
Source§impl Clone for EconomicsInterval
impl Clone for EconomicsInterval
Source§fn clone(&self) -> EconomicsInterval
fn clone(&self) -> EconomicsInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EconomicsInterval
impl Debug for EconomicsInterval
Source§impl<'de> Deserialize<'de> for EconomicsInterval
impl<'de> Deserialize<'de> for EconomicsInterval
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for EconomicsInterval
impl JsonSchema for EconomicsInterval
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for EconomicsInterval
impl PartialEq for EconomicsInterval
Source§fn eq(&self, other: &EconomicsInterval) -> bool
fn eq(&self, other: &EconomicsInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsInterval
impl Serialize for EconomicsInterval
impl StructuralPartialEq for EconomicsInterval
Auto Trait Implementations§
impl Freeze for EconomicsInterval
impl RefUnwindSafe for EconomicsInterval
impl Send for EconomicsInterval
impl Sync for EconomicsInterval
impl Unpin for EconomicsInterval
impl UnsafeUnpin for EconomicsInterval
impl UnwindSafe for EconomicsInterval
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