forked from andrewkirillov/AForge.NET
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathISimilarity.cs
41 lines (39 loc) · 1.3 KB
/
ISimilarity.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// AForge Math Library
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © AForge.NET, 2007-2010
// contacts@aforgenet.com
//
namespace AForge.Math.Metrics
{
using System;
/// <summary>
/// Interface for similarity algorithms.
/// </summary>
///
/// <remarks><para>The interface defines a set of methods implemented
/// by similarity and correlation algorithms. These algorithms typically take a set of points and return a
/// similarity score for the two vectors.</para>
///
/// <para>Similarity and correlation algorithms are used in many machine learning and collaborative
/// filtering algorithms.</para>
///
/// <para>For additional details about similarity metrics, documentation of the
/// particular algorithms should be studied.</para>
/// </remarks>
///
public interface ISimilarity
{
/// <summary>
/// Returns similarity score for two N-dimensional double vectors.
/// </summary>
///
/// <param name="p">1st point vector.</param>
/// <param name="q">2nd point vector.</param>
///
/// <returns>Returns similarity score determined by the given algorithm.</returns>
///
double GetSimilarityScore( double[] p, double[] q );
}
}