Generated by DocFX

Struct Hamming<T>

Hamming distance.

Implements
IMetric<T[]>
IDistance<T[]>
IDistance<T[], T[]>
ICloneable
Namespace: ISynergy.Framework.Mathematics.Distances
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public struct Hamming<T> : IMetric<T[]>, IDistance<T[]>, IDistance<T[], T[]> where T : IEquatable<T>
Type Parameters
Name Description
T

The type of the elements to be compared.

Methods

View Source

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

View Source

Distance(T[], T[])

Computes the distance d(x,y) between points x and y.

Declaration
public double Distance(T[] x, T[] y)
Parameters
Type Name Description
T[] x

The first point x.

T[] y

The second point y.

Returns
Type Description
System.Double

A double-precision value representing the distance d(x,y) between x and y according to the distance function implemented by this class.

Implements

IMetric<T>
IDistance<T>
IDistance<T, U>
ICloneable

Extension Methods

EnumExtensions.GetSymbol<T>(T)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.AddressOf<T>(T)
ObjectExtensions.ToByteArray<T>(T)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)