public final class SimilarityMath extends Object
| Constructor and Description |
|---|
SimilarityMath() |
| Modifier and Type | Method and Description |
|---|---|
static double |
cosineSimilarity(float[] embedA,
float[] embedB)
余弦相似度
|
static float |
dotProduct(float[] embedA,
float[] embedB)
点积
|
static float |
norm(float[] vector)
范数
|
Copyright © 2025. All rights reserved.