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
MIN_INNER_SPHERE_SIZEmembers - Inner EVR improves over global subset EVR by ≥
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 · 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 Freeze for InnerSphere
impl !RefUnwindSafe for InnerSphere
impl Send for InnerSphere
impl Sync for InnerSphere
impl Unpin for InnerSphere
impl UnsafeUnpin for InnerSphere
impl !UnwindSafe 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