|
using System;
using System.Collections.Generic;
using System.Text;
namespace HopfieldNeuralNetwork
{
/// <summary>
/// Provides data for the <typeparamref name="EnergyChanged"/> event
/// </summary>
public class EnergyEventArgs : EventArgs
{
private double energy;
private int neuronIndex;
/// <summary>
/// Gets Energy of Neural network
/// </summary>
public double Energy
{
get { return energy; }
}
/// <summary>
/// Initializes a new instance of the <typeparamref name="EnergyEventArgs"/> class with the specified value of Energy
/// </summary>
/// <param name="Energy">The double that represents the value of neural network energy</param>
/// <param name="NeuronIndex">The index f neuron caused energy cahnge</param>
public EnergyEventArgs(double Energy, int NeuronIndex)
{
this.energy = Energy;
this.neuronIndex = NeuronIndex;
}
/// <summary>
/// Gets index of neuron, which state changing led to energy descrease
/// </summary>
public int NeuronIndex
{
get { return neuronIndex; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Work: HSBC (http://www.hsbc.co.uk/).
Regalia: PhD in CS, MCAD, MCPD: Web Developer, MCTS: .Net Framework 2.0., 3.5.
Interests: Programming, artificial intelligence, C#, .NET, HTML5, ASP.NET, SQL, LINQ.
Marital Status: Married, daughter
Blog:
http://www.magomedov.co.uk