de.webdings.jannis.neuralnet

Class Synapse


public class Synapse
extends java.lang.Object

Synapse is used to represent a connection between two Neurons.

Version:
0.1 31.07.2005

Author:
Stefan Thesing
Website: http://www.webdings.de

See Also:
Neuron

Field Summary

protected Neuron
source
the source neuron of activation
protected Neuron
target
the target neuron of the activation
protected float
weight
the synapse weight

Constructor Summary

Synapse(Neuron source, Neuron target, float weight)

Method Summary

Neuron
getSource()
Neuron
getTarget()
float
getWeight()
void
setSource(Neuron source)
void
setTarget(Neuron target)
void
setWeight(float weight)

Field Details

source

protected Neuron source
the source neuron of activation


target

protected Neuron target
the target neuron of the activation


weight

protected float weight
the synapse weight

Constructor Details

Synapse

public Synapse(Neuron source,
               Neuron target,
               float weight)

Parameters:
source -
target -
weight -

Method Details

getSource

public Neuron getSource()

Returns:
Returns the source neuron.


getTarget

public Neuron getTarget()

Returns:
Returns the target neuron.


getWeight

public float getWeight()

Returns:
Returns the synapse weight.


setSource

public void setSource(Neuron source)

Parameters:
source - The source neuron to set.


setTarget

public void setTarget(Neuron target)

Parameters:
target - The target neuron to set.


setWeight

public void setWeight(float weight)

Parameters:
weight - The synapse weight to set.


Synapse.java - Copyright (c) 2005 by Stefan Thesing

This file is part of Jannis.

Jannis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Jannis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Jannis; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA



© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.