com.marmoush.jann.neuralgraph
Class NeuralDirectedGraph

java.lang.Object
  extended by 
      extended by com.marmoush.jann.neuralgraph.NeuralDirectedGraph
All Implemented Interfaces:
INeuralDirectedGraphable

public class NeuralDirectedGraph
extends
implements INeuralDirectedGraphable

The Class NeuralDirectedGraph.


Constructor Summary
NeuralDirectedGraph()
          Instantiates a new neural directed graph.
NeuralDirectedGraph(int... nNeuronsPerLayer)
          Instantiates a new neural directed graph.
NeuralDirectedGraph(List<Integer> nNeuronsPerLayer)
          Instantiates a new neural directed graph.
 
Method Summary
 void clearConnections()
          Clear connections.
 void connectLayersAsFF()
          Connect layers as ff.
 List<Integer> getAllLayersNumOfNeurons()
          Gets the all layers num of neurons.
 int getInputLength(int lyrIdx)
          Gets the input length.
 int getLayerNumOfNeurons(int lyrIdx)
          Gets the layer num of neurons.
 int getNumOfLayers()
          Gets the num of layers.
 List<Integer> getPredecessorsOf(int lyrIdx)
          Gets the predecessors of.
 List<Integer> getSuccessorsOf(int lyrIdx)
          Gets the successors of.
 void setAllLayersNumOfNeurons(List<Integer> nNeuronsPerLayer)
          Sets the all layers num of neurons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeuralDirectedGraph

public NeuralDirectedGraph()
Instantiates a new neural directed graph.


NeuralDirectedGraph

public NeuralDirectedGraph(int... nNeuronsPerLayer)
Instantiates a new neural directed graph.

Parameters:
nNeuronsPerLayer - the n neurons per layer

NeuralDirectedGraph

public NeuralDirectedGraph(List<Integer> nNeuronsPerLayer)
Instantiates a new neural directed graph.

Parameters:
nNeuronsPerLayer - the n neurons per layer
Method Detail

clearConnections

public void clearConnections()
Clear connections.


connectLayersAsFF

public void connectLayersAsFF()
Connect layers as ff.


getAllLayersNumOfNeurons

public List<Integer> getAllLayersNumOfNeurons()
Description copied from interface: INeuralDirectedGraphable
Gets the all layers num of neurons.

Specified by:
getAllLayersNumOfNeurons in interface INeuralDirectedGraphable
Returns:
the all layers num of neurons

getInputLength

public int getInputLength(int lyrIdx)
Description copied from interface: INeuralDirectedGraphable
Gets the input length.

Specified by:
getInputLength in interface INeuralDirectedGraphable
Parameters:
lyrIdx - the layer index
Returns:
the input length

getLayerNumOfNeurons

public int getLayerNumOfNeurons(int lyrIdx)
Description copied from interface: INeuralDirectedGraphable
Gets the layer num of neurons.

Specified by:
getLayerNumOfNeurons in interface INeuralDirectedGraphable
Parameters:
lyrIdx - the layer index
Returns:
the layer num of neurons

getNumOfLayers

public int getNumOfLayers()
Gets the num of layers.

Returns:
the num of layers

getPredecessorsOf

public List<Integer> getPredecessorsOf(int lyrIdx)
Description copied from interface: INeuralDirectedGraphable
Gets the predecessors of.

Specified by:
getPredecessorsOf in interface INeuralDirectedGraphable
Parameters:
lyrIdx - the layer index
Returns:
the predecessors of

getSuccessorsOf

public List<Integer> getSuccessorsOf(int lyrIdx)
Description copied from interface: INeuralDirectedGraphable
Gets the successors of.

Specified by:
getSuccessorsOf in interface INeuralDirectedGraphable
Parameters:
lyrIdx - the layer index
Returns:
the successors of

setAllLayersNumOfNeurons

public void setAllLayersNumOfNeurons(List<Integer> nNeuronsPerLayer)
Description copied from interface: INeuralDirectedGraphable
Sets the all layers num of neurons.

Specified by:
setAllLayersNumOfNeurons in interface INeuralDirectedGraphable
Parameters:
nNeuronsPerLayer - the new all layers num of neurons


Copyright © 2011-2012 Marmoush.com. All Rights Reserved.