Format VectorHelper Method Signature
- Reformat the CosineSimilarity method signature without changing its calculation logic.
This commit is contained in:
@@ -45,7 +45,10 @@ namespace xAiService.Helpers
|
||||
/// <param name="a"></param>
|
||||
/// <param name="b"></param>
|
||||
/// <returns></returns>
|
||||
public static float CosineSimilarity(float[] a, float[] b)
|
||||
public static float CosineSimilarity(
|
||||
float[] a,
|
||||
float[] b
|
||||
)
|
||||
{
|
||||
//
|
||||
if (a.IsNull() || b.IsNull())
|
||||
|
||||
Reference in New Issue
Block a user