Generated by DocFX

Struct Hamming

Hamming distance.

Implements
IMetric<System.Byte[]>
IDistance<System.Byte[]>
IDistance<System.Byte[], System.Byte[]>
IMetric<System.String>
IDistance<System.String>
IDistance<System.String, System.String>
IDistance<System.Double[]>
IDistance<System.Double[], System.Double[]>
IMetric<BitArray>
IDistance<BitArray>
IDistance<BitArray, BitArray>
ICloneable
Namespace: ISynergy.Framework.Mathematics.Distances
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public struct Hamming : IMetric<byte[]>, IDistance<byte[]>, IDistance<byte[], byte[]>, IMetric<string>, IDistance<string>, IDistance<string, string>, IDistance<double[]>, IDistance<double[], double[]>, IMetric<BitArray>, IDistance<BitArray>, IDistance<BitArray, BitArray>

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(BitArray, BitArray)

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

Declaration
public double Distance(BitArray x, BitArray y)
Parameters
Type Name Description
BitArray x

The first point x.

BitArray 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.

View Source

Distance(Byte[], Byte[])

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

Declaration
public double Distance(byte[] x, byte[] y)
Parameters
Type Name Description
System.Byte[] x

The first point x.

System.Byte[] 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.

View Source

Distance(Double[], Double[])

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

Declaration
public double Distance(double[] x, double[] y)
Parameters
Type Name Description
System.Double[] x

The first point x.

System.Double[] 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.

View Source

Distance(String, String)

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

Declaration
public double Distance(string x, string y)
Parameters
Type Name Description
System.String x

The first point x.

System.String 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>
IMetric<T>
IDistance<T>
IDistance<T, U>
IDistance<T>
IDistance<T, U>
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>>)