pub struct InnerSphere {
pub projection: InnerProjection,
pub inner_positions: Vec<SphericalPoint>,
pub member_indices: Vec<usize>,
pub explained_variance_ratio: f64,
pub global_subset_evr: f64,
pub evr_improvement: f64,
}Expand description
A category-specific inner sphere with its own optimized projection.
Only created for categories that meet all of:
- At least
InnerSphereConfig::min_sizemembers - Inner EVR improves over global subset EVR by ≥
InnerSphereConfig::min_evr_improvement
The inner sphere gives higher-resolution angular discrimination within the category than the global outer projection can provide.
Fields§
§projection: InnerProjectionThe category-specific projection (linear PCA or kernel PCA).
inner_positions: Vec<SphericalPoint>Positions of member items in the inner sphere’s coordinate system.
inner_positions[i] corresponds to member_indices[i].
member_indices: Vec<usize>Global item indices of the members (same order as inner_positions).
explained_variance_ratio: f64Explained variance ratio of the inner projection.
global_subset_evr: f64Mean certainty of these items under the global (outer) projection. Baseline for measuring improvement.
evr_improvement: f64explained_variance_ratio - global_subset_evr.
Trait Implementations§
Source§impl Clone for InnerSphere
impl Clone for InnerSphere
Source§fn clone(&self) -> InnerSphere
fn clone(&self) -> InnerSphere
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for InnerSphere
impl !UnwindSafe for InnerSphere
impl Freeze for InnerSphere
impl Send for InnerSphere
impl Sync for InnerSphere
impl Unpin for InnerSphere
impl UnsafeUnpin for InnerSphere
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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