pub struct ProjectedPoint {
pub position: SphericalPoint,
pub certainty: f64,
pub intensity: f64,
pub projection_magnitude: f64,
}Expand description
A projected point on the sphere with rich attributes from the projection.
Extends the raw SphericalPoint with metadata that captures how much
information was preserved (or lost) during dimensionality reduction.
Fields§
§position: SphericalPointThe spherical position (r, theta, phi).
certainty: f64How well the 3D projection captures this point’s original direction. Computed as 1 - (residual / total variance). Range [0, 1]:
- 1.0: perfect reconstruction (all variance explained by 3 PCA components)
- 0.0: the projection lost everything
intensity: f64Semantic strength of the original embedding (pre-normalization magnitude). Higher values indicate more specific/confident embeddings.
projection_magnitude: f64Magnitude of the 3-component PCA projection before normalization. Points near the PCA centroid have low projection magnitude and are ambiguous — they don’t strongly align with any principal direction.
Implementations§
Source§impl ProjectedPoint
impl ProjectedPoint
pub fn new( position: SphericalPoint, certainty: f64, intensity: f64, projection_magnitude: f64, ) -> Self
Sourcepub fn from_position(position: SphericalPoint, intensity: f64) -> Self
pub fn from_position(position: SphericalPoint, intensity: f64) -> Self
Create a basic projected point with no metadata (legacy compat).
Trait Implementations§
Source§impl Clone for ProjectedPoint
impl Clone for ProjectedPoint
Source§fn clone(&self) -> ProjectedPoint
fn clone(&self) -> ProjectedPoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProjectedPoint
Source§impl Debug for ProjectedPoint
impl Debug for ProjectedPoint
Source§impl<'de> Deserialize<'de> for ProjectedPoint
impl<'de> Deserialize<'de> for ProjectedPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ProjectedPoint
impl RefUnwindSafe for ProjectedPoint
impl Send for ProjectedPoint
impl Sync for ProjectedPoint
impl Unpin for ProjectedPoint
impl UnsafeUnpin for ProjectedPoint
impl UnwindSafe for ProjectedPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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