clarion.nacs
Class EM

java.lang.Object
  extended byclarion.nacs.EM

public class EM
extends java.lang.Object


Constructor Summary
EM(int nIdx, Global g, int type)
          constructor.
 
Method Summary
 void checkValid()
          check if the BLA of a chunk falls below the threshold_EM, it should be called first.
 EMAcsSample[] getAcsSamples(int trainType)
          Returns the ACS samples.
 EMNacsSample[] getNacsSamples()
          Returns the NACS samples.
 void initChunkLists()
          initialize the list of existing or empty chunks.
 void insertItem(Chunk chunk)
          insert a specific chunk into the EM.
 void reinit()
          reinitialization routine.
 void setCurrentTime(long time)
          Set current time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EM

public EM(int nIdx,
          Global g,
          int type)
constructor.

Parameters:
nIdx - net index.
g - the global setting.
type - the EM type: ACS or NACS.
Method Detail

initChunkLists

public void initChunkLists()
initialize the list of existing or empty chunks.


reinit

public void reinit()
reinitialization routine.


getAcsSamples

public EMAcsSample[] getAcsSamples(int trainType)
Returns the ACS samples.

Parameters:
trainType - training type: ACS or AEM.
Returns:
the ACS samples.

getNacsSamples

public EMNacsSample[] getNacsSamples()
Returns the NACS samples.

Returns:
the NACS samples.

setCurrentTime

public void setCurrentTime(long time)
Set current time.

Parameters:
time - the time to set.

checkValid

public void checkValid()
check if the BLA of a chunk falls below the threshold_EM, it should be called first.


insertItem

public void insertItem(Chunk chunk)
insert a specific chunk into the EM.