pub struct NodeDensity {
pub heights: Vec<f64>,
pub prior: Option<Vec<f64>>,
pub band: Option<(f64, f64)>,
pub marker: Option<f64>,
pub text: String,
}Expand description
A continuous node’s belief in its box, under the label (a Bayesian
network’s Gaussian node): the density as a filled curve, the prior as a
dashed outline behind it, an interval shaded under the curve, a marked
value (e.g. the observed one) and a line of text under it. The heights
share one span (left to right), band and marker are fractions of it.
Size the box with density_box.
Fields§
§heights: Vec<f64>The density, 0..=1 at evenly spaced points (three or more).
prior: Option<Vec<f64>>The prior’s density on the same scale and span.
band: Option<(f64, f64)>An interval (e.g. 90 %), its ends as fractions of the span: the curve’s area between them drawn darker.
marker: Option<f64>A value as a fraction of the span: a line across the curve.
text: StringThe line under the curve, e.g. 12.3 (10.1–14.5).
Trait Implementations§
Source§impl Clone for NodeDensity
impl Clone for NodeDensity
Source§impl Debug for NodeDensity
impl Debug for NodeDensity
Source§impl Default for NodeDensity
impl Default for NodeDensity
Source§impl PartialEq for NodeDensity
impl PartialEq for NodeDensity
impl StructuralPartialEq for NodeDensity
Auto Trait Implementations§
impl Forget for NodeDensity
impl Freeze for NodeDensity
impl Move for NodeDensity
impl RefUnwindSafe for NodeDensity
impl Send for NodeDensitywhere
RawVecInner: Send,
impl Sync for NodeDensitywhere
RawVecInner: Sync,
impl Unpin for NodeDensity
impl UnsafeUnpin for NodeDensity
impl UnwindSafe for NodeDensitywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more