org.encog.neural.freeform
Interface FreeformLayer

All Known Implementing Classes:
BasicFreeformLayer

public interface FreeformLayer

Defines a freeform layer. A layer is a group of similar neurons.


Method Summary
 void add(FreeformNeuron basicFreeformNeuron)
          Add a neuron to this layer.
 List<FreeformNeuron> getNeurons()
           
 boolean hasBias()
           
 void setActivation(int i, double data)
          Set the activation for the specified index.
 int size()
           
 int sizeNonBias()
           
 

Method Detail

add

void add(FreeformNeuron basicFreeformNeuron)
Add a neuron to this layer.

Parameters:
basicFreeformNeuron - The neuron to add.

getNeurons

List<FreeformNeuron> getNeurons()
Returns:
The neurons in this layer.

hasBias

boolean hasBias()
Returns:
True if this layer has bias.

setActivation

void setActivation(int i,
                   double data)
Set the activation for the specified index.

Parameters:
i - The index.
data - The data for that index.

size

int size()
Returns:
The size of this layer, including bias.

sizeNonBias

int sizeNonBias()
Returns:
The size of this layer, no bias counted.


Copyright © 2014. All Rights Reserved.