pub enum RadialStrategy {
Fixed(f64),
Magnitude,
MagnitudeTransform(Arc<dyn Fn(f64) -> f64 + Send + Sync>),
}Expand description
Controls how the radial coordinate r is computed from an embedding.
The angular coordinates (theta, phi) always encode semantic direction. The radial coordinate is free to encode magnitude, metadata, or a fixed value.
Variants§
Fixed(f64)
Constant radius for all projections.
Magnitude
r = L2 magnitude of the raw (pre-normalization) embedding. Encodes embedding “confidence” or specificity.
MagnitudeTransform(Arc<dyn Fn(f64) -> f64 + Send + Sync>)
r = f(magnitude). Apply a custom transform to the pre-normalization magnitude. Useful for log-scaling, clamping, or mapping metadata that correlates with magnitude.
Implementations§
Trait Implementations§
Source§impl Clone for RadialStrategy
impl Clone for RadialStrategy
Source§impl Debug for RadialStrategy
impl Debug for RadialStrategy
Source§impl Default for RadialStrategy
impl Default for RadialStrategy
Source§fn default() -> RadialStrategy
fn default() -> RadialStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RadialStrategy
impl !RefUnwindSafe for RadialStrategy
impl Send for RadialStrategy
impl Sync for RadialStrategy
impl Unpin for RadialStrategy
impl UnsafeUnpin for RadialStrategy
impl !UnwindSafe for RadialStrategy
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> 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