pub enum VectorMetric {
Cosine,
L2,
Inner,
}Expand description
ベクトル類似度/距離のメトリクス。
Variants§
Implementations§
Source§impl VectorMetric
impl VectorMetric
Sourcepub fn parse(s: &str) -> Result<Self, VectorError>
pub fn parse(s: &str) -> Result<Self, VectorError>
文字列をメトリクスに変換する(前後空白除去・小文字化)。
Trait Implementations§
Source§impl Clone for VectorMetric
impl Clone for VectorMetric
Source§fn clone(&self) -> VectorMetric
fn clone(&self) -> VectorMetric
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 moreSource§impl Debug for VectorMetric
impl Debug for VectorMetric
Source§impl FromStr for VectorMetric
impl FromStr for VectorMetric
Source§impl PartialEq for VectorMetric
impl PartialEq for VectorMetric
impl Copy for VectorMetric
impl Eq for VectorMetric
impl StructuralPartialEq for VectorMetric
Auto Trait Implementations§
impl Freeze for VectorMetric
impl RefUnwindSafe for VectorMetric
impl Send for VectorMetric
impl Sync for VectorMetric
impl Unpin for VectorMetric
impl UnwindSafe for VectorMetric
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