com.anji.integration
Interface Activator

All Superinterfaces:
XmlPersistable
All Known Implementing Classes:
AnjiActivator

public interface Activator
extends XmlPersistable

Although any object taking and returning double arrays can implement this, it is meant to be a simple neural net interface where the arrays are input and output activation patterns.

Author:
Philip Tucker

Method Summary
 int getInputDimension()
           
 double getMaxResponse()
           
 double getMinResponse()
           
 java.lang.String getName()
           
 int getOutputDimension()
           
 double[] next()
           
 double[] next(double[] stimuli)
           
 double[][] next(double[][] stimuli)
           
 void reset()
          reset object to initial state
 java.lang.String toXml()
           
 
Methods inherited from interface com.anji.util.XmlPersistable
getXmld, getXmlRootTag
 

Method Detail

next

public double[] next()
Returns:
double[] output array given last provided input activation via next(double[]) or next(double[][]).
See Also:
next(double[]), next(double[][])

next

public double[] next(double[] stimuli)
Parameters:
stimuli -
Returns:
double[] output array given input stimuli.

next

public double[][] next(double[][] stimuli)
Parameters:
stimuli -
Returns:
double[][] sequence of output arrays given input sequence stimult.

toXml

public java.lang.String toXml()
Specified by:
toXml in interface XmlPersistable
Returns:
String XML representation of object.

reset

public void reset()
reset object to initial state


getName

public java.lang.String getName()
Returns:
String identifier, preferably unique, of object.

getMinResponse

public double getMinResponse()
Returns:
min response value

getMaxResponse

public double getMaxResponse()
Returns:
max response value

getInputDimension

public int getInputDimension()
Returns:
dimension of input array

getOutputDimension

public int getOutputDimension()
Returns:
dimension of output array