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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more