This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/Examples/Common/Distance/IDistanceComparer.cs
T
Simon Gruber 8ada606fa6 a
2023-11-22 07:46:10 +01:00

27 lines
689 B
C#

using System.Collections;
namespace Common.Distance;
public interface IDistanceComparer
{
/// <summary>
/// The calculated 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; }
}