mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-10-30 18:33:33 +00:00
Included open-source Accord.net library code natively to the solution given the deprecated state of that project. Accord.net will be supported inside Jube for own needs (such as upgrading to .Net 7+). Accord.net libraries modified to compile to .Net 6. Modified Accord.net libraries to better support Newtonsoft Json.net serialisation. Included annotations in the Accord.net libraries to house important dependency statistics. Serialised json can be used independently of Jube to recall a Neural Network. Removal of Binary Serializer totally as a precursor to the projects support of .Net 7+. Extensive bug fixing in crucial functions of Neural Network training and recall. While this part of the system remains in Alpha, it is substantially more fit for purpose.
29 lines
719 B
C#
29 lines
719 B
C#
// AForge Math Library
|
|
// AForge.NET framework
|
|
// http://www.aforgenet.com/framework/
|
|
//
|
|
// Copyright © AForge.NET, 2007-2010
|
|
// [email protected]
|
|
//
|
|
|
|
namespace Accord.Math.Metrics
|
|
{
|
|
using Accord.Math.Distances;
|
|
using System;
|
|
|
|
/// <summary>
|
|
/// Please use Accord.Math.Distances.Hamming instead.
|
|
/// </summary>
|
|
[Obsolete("Please use Accord.Math.Distances.Hamming instead.")]
|
|
public sealed class HammingDistance : IDistance
|
|
{
|
|
/// <summary>
|
|
/// Please use Accord.Math.Distances.Hamming instead.
|
|
/// </summary>
|
|
public double GetDistance(double[] p, double[] q)
|
|
{
|
|
return new Hamming<double>().Distance(p, q);
|
|
}
|
|
}
|
|
}
|