pub struct RaincloudGeometry { /* private fields */ }Expand description
Complete supplied raincloud geometry in three independently aligned domains.
Summary row order determines group order. Density and point rows name their summary group by raw category/hue strings and retain their relative order.
Implementations§
Source§impl RaincloudGeometry
impl RaincloudGeometry
Sourcepub fn new(
category_dimension: impl Into<String>,
value_dimension: impl Into<String>,
category: CategoryValues,
q1: NumericValues,
median: NumericValues,
q3: NumericValues,
density_category: CategoryValues,
density_y: NumericValues,
normalized_width: NumericValues,
point_category: CategoryValues,
point_y: NumericValues,
normalized_strip: NumericValues,
) -> RaincloudGeometry
pub fn new( category_dimension: impl Into<String>, value_dimension: impl Into<String>, category: CategoryValues, q1: NumericValues, median: NumericValues, q3: NumericValues, density_category: CategoryValues, density_y: NumericValues, normalized_width: NumericValues, point_category: CategoryValues, point_y: NumericValues, normalized_strip: NumericValues, ) -> RaincloudGeometry
Supply the three independent raincloud geometry domains.
Sourcepub fn with_hue(
self,
dimension: impl Into<String>,
summary: CategoryValues,
density: CategoryValues,
points: CategoryValues,
) -> RaincloudGeometry
pub fn with_hue( self, dimension: impl Into<String>, summary: CategoryValues, density: CategoryValues, points: CategoryValues, ) -> RaincloudGeometry
Supply the original hue dimension in all three actual domains.
Sourcepub fn category_dimension(&self) -> &str
pub fn category_dimension(&self) -> &str
Original scientific category dimension.
Sourcepub fn value_dimension(&self) -> &str
pub fn value_dimension(&self) -> &str
Original scientific value dimension.
Sourcepub fn hue_dimension(&self) -> Option<&str>
pub fn hue_dimension(&self) -> Option<&str>
Original scientific hue dimension, if present.
Sourcepub fn density_category(&self) -> KeyValues
pub fn density_category(&self) -> KeyValues
Original category keys of the density domain.
Sourcepub fn point_category(&self) -> KeyValues
pub fn point_category(&self) -> KeyValues
Original category keys of the point domain.
Sourcepub fn density_hue(&self) -> Option<KeyValues>
pub fn density_hue(&self) -> Option<KeyValues>
Original hue keys of the density domain, if supplied.
Sourcepub fn point_hue(&self) -> Option<KeyValues>
pub fn point_hue(&self) -> Option<KeyValues>
Original hue keys of the point domain, if supplied.
Sourcepub fn q1(&self) -> &NumericValues
pub fn q1(&self) -> &NumericValues
Actual lower quartiles.
Sourcepub fn median(&self) -> &NumericValues
pub fn median(&self) -> &NumericValues
Actual medians.
Sourcepub fn q3(&self) -> &NumericValues
pub fn q3(&self) -> &NumericValues
Actual upper quartiles.
Sourcepub fn density_y(&self) -> &NumericValues
pub fn density_y(&self) -> &NumericValues
Actual density support.
Sourcepub fn normalized_width(&self) -> &NumericValues
pub fn normalized_width(&self) -> &NumericValues
Actual normalized profile widths.
Sourcepub fn point_y(&self) -> &NumericValues
pub fn point_y(&self) -> &NumericValues
Original point values.
Sourcepub fn normalized_strip(&self) -> &NumericValues
pub fn normalized_strip(&self) -> &NumericValues
Actual normalized strip coordinates.
Source§impl RaincloudGeometry
impl RaincloudGeometry
Sourcepub fn get_profiles(&self) -> Option<&DensityProfiles>
pub fn get_profiles(&self) -> Option<&DensityProfiles>
The original KDE and auxiliary statistics when this geometry was evaluated from samples. Supplied widths alone do not define density.
Sourcepub fn domains(&self) -> &[DataDomainInfo]
pub fn domains(&self) -> &[DataDomainInfo]
Three actual result domains, when captured by scientific preparation.
Sourcepub fn members_in(
&self,
domain: &DataDomainRef,
address: impl Into<MemberAddress>,
) -> Result<Option<SourceMembers>, Error>
pub fn members_in( &self, domain: &DataDomainRef, address: impl Into<MemberAddress>, ) -> Result<Option<SourceMembers>, Error>
Read a member in the specified result domain.
Sourcepub fn members(
&self,
address: impl Into<MemberAddress>,
) -> Result<Option<SourceMembers>, Error>
pub fn members( &self, address: impl Into<MemberAddress>, ) -> Result<Option<SourceMembers>, Error>
Read a member when there is a unique actual result domain.
Trait Implementations§
Source§impl Clone for RaincloudGeometry
impl Clone for RaincloudGeometry
Source§fn clone(&self) -> RaincloudGeometry
fn clone(&self) -> RaincloudGeometry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RaincloudGeometry
impl Debug for RaincloudGeometry
Auto Trait Implementations§
impl Forget for RaincloudGeometry
impl Freeze for RaincloudGeometrywhere
*const ArcInner<RaincloudData> is !null: Freeze,
PhantomData<ArcInner<RaincloudData>>: Freeze,
*const ArcInner<RaincloudScience> is !null: Freeze,
PhantomData<ArcInner<RaincloudScience>>: Freeze,
impl Move for RaincloudGeometry
impl RefUnwindSafe for RaincloudGeometry
impl Send for RaincloudGeometry
impl Sync for RaincloudGeometry
impl Unpin for RaincloudGeometry
impl UnsafeUnpin for RaincloudGeometrywhere
*const ArcInner<RaincloudData> is !null: UnsafeUnpin,
PhantomData<ArcInner<RaincloudData>>: UnsafeUnpin,
*const ArcInner<RaincloudScience> is !null: UnsafeUnpin,
PhantomData<ArcInner<RaincloudScience>>: UnsafeUnpin,
impl UnwindSafe for RaincloudGeometry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.