The Encog Project

org.encog.neural.data
Interface NeuralData

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
BasicNeuralData, BiPolarNeuralData, ImageNeuralData

public interface NeuralData
extends java.lang.Cloneable

Defines an array of data. This is an array of double values that could be used either for input data, actual output data or ideal output data.

Author:
jheaton

Method Summary
 NeuralData clone()
          Clone this object.
 double[] getData()
           
 double getData(int index)
          Get the element specified index value.
 void setData(double[] data)
          Set all of the data as an array of doubles.
 void setData(int index, double d)
          Set the specified element.
 int size()
           
 

Method Detail

setData

void setData(double[] data)
Set all of the data as an array of doubles.

Parameters:
data - An array of doubles.

setData

void setData(int index,
             double d)
Set the specified element.

Parameters:
index - The index to set.
d - The data for the specified element.

getData

double[] getData()
Returns:
All of the elements as an array.

getData

double getData(int index)
Get the element specified index value.

Parameters:
index - The index to read.
Returns:
The value at the specified inedx.

size

int size()
Returns:
How many elements are stored in this object.

clone

NeuralData clone()
Clone this object.

Returns:
A clonned version of this object.

The Encog Project