Renamed Examples to Implementation

This commit is contained in:
Simon Gruber
2024-01-08 16:23:24 +01:00
parent b17044f959
commit 6c554e444f
1240 changed files with 0 additions and 0 deletions
@@ -0,0 +1,27 @@
using System.Collections;
namespace Common.Distance;
public interface IDistanceComparer
{
/// <summary>
/// The calculated absolute distance between
/// <see cref="IDistanceComparer{T}.Reference"/> and
/// <see cref="IDistanceComparer{T}.Hypothesis"/>
/// </summary>
public double Distance { get; }
}
public interface IDistanceComparer<out T> : IDistanceComparer
where T : IEnumerable
{
/// <summary>
/// The comparison reference, meaning the "known to be correct" value
/// </summary>
public T Reference { get; }
/// <summary>
/// The value hypothesis, whose correctness is checked against <see cref="Reference"/>
/// </summary>
public T? Hypothesis { get; }
}