org.encog.neural.networks.structure
Class CalculateDepth

java.lang.Object
  extended by org.encog.neural.networks.structure.CalculateDepth

public class CalculateDepth
extends Object

Utility class to calculate the depth that a layer is from the output layer. If there are multiple ways to get to the specified layer, then the longest depth is returned. This class is used by propagation training to ensure that the layers are always returned on a consistent order.


Constructor Summary
CalculateDepth(BasicNetwork network)
          Construct the depth calculation object.
 
Method Summary
 int getDepth(Layer layer)
          Get the depth for a specific layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateDepth

public CalculateDepth(BasicNetwork network)
Construct the depth calculation object.

Parameters:
network - The network that we are calculating for.
Method Detail

getDepth

public int getDepth(Layer layer)
Get the depth for a specific layer.

Parameters:
layer - The layer to get the depth for.
Returns:
The depth of the specified layer.


Copyright © 2011. All Rights Reserved.