Package gov.nih.mipav.model.algorithms
Class Backpropagation.Neuron
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.Backpropagation.Neuron
-
- Enclosing class:
- Backpropagation
class Backpropagation.Neuron extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Integer,Backpropagation.Connection>
connectionLookup
private java.util.ArrayList<Backpropagation.Connection>
connections
(package private) int
id
private double
output
-
Constructor Summary
Constructors Constructor Description Neuron()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addConnections(Backpropagation.Neuron[] neurons)
(package private) void
addConnections(java.util.ArrayList<Backpropagation.Neuron> neurons)
(package private) void
calculateOutput()
(package private) java.util.ArrayList<Backpropagation.Connection>
getAllConnections()
(package private) Backpropagation.Connection
getConnection(int neuronIndex)
(package private) double
getOutput()
(package private) void
setOutput(double o)
private double
sigmoid(double x)
-
-
-
Field Detail
-
id
final int id
-
output
private double output
-
connections
private java.util.ArrayList<Backpropagation.Connection> connections
-
connectionLookup
private java.util.HashMap<java.lang.Integer,Backpropagation.Connection> connectionLookup
-
-
Method Detail
-
calculateOutput
void calculateOutput()
-
sigmoid
private double sigmoid(double x)
-
addConnections
void addConnections(java.util.ArrayList<Backpropagation.Neuron> neurons)
-
addConnections
void addConnections(Backpropagation.Neuron[] neurons)
-
getConnection
Backpropagation.Connection getConnection(int neuronIndex)
-
getAllConnections
java.util.ArrayList<Backpropagation.Connection> getAllConnections()
-
getOutput
double getOutput()
-
setOutput
void setOutput(double o)
-
-