pub struct ObsEntry {
pub field_id: FieldId,
pub region: ObsRegion,
pub pool: Option<PoolConfig>,
pub transform: ObsTransform,
pub dtype: ObsDtype,
}Expand description
A single observation entry targeting one field over a spatial region.
§Examples
use murk_obs::{ObsEntry, ObsDtype, ObsTransform, ObsRegion};
use murk_core::FieldId;
use murk_space::RegionSpec;
let entry = ObsEntry {
field_id: FieldId(0),
region: RegionSpec::All.into(),
pool: None,
transform: ObsTransform::Identity,
dtype: ObsDtype::F32,
};
assert_eq!(entry.field_id, FieldId(0));
assert!(entry.pool.is_none());
assert!(matches!(entry.region, ObsRegion::Fixed(RegionSpec::All)));Fields§
§field_id: FieldIdWhich simulation field to observe.
region: ObsRegionSpatial region to gather from.
pool: Option<PoolConfig>Optional spatial pooling applied after gather, before transform.
transform: ObsTransformTransform to apply to raw field values (element-wise, after pooling).
dtype: ObsDtypeOutput data type.
Trait Implementations§
impl StructuralPartialEq for ObsEntry
Auto Trait Implementations§
impl Freeze for ObsEntry
impl RefUnwindSafe for ObsEntry
impl Send for ObsEntry
impl Sync for ObsEntry
impl Unpin for ObsEntry
impl UnsafeUnpin for ObsEntry
impl UnwindSafe for ObsEntry
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