Class MetastateAttributes

java.lang.Object
  |
  +--MetastateAttributes
Direct Known Subclasses:
Metastate

public class MetastateAttributes
extends java.lang.Object

The MetastateAttributes defines three Metastate vectors. One vector holds the mean value, one the standard deviation and one the momentum.

See Also:
MetastateVector

Field Summary
static float epsG
          Positive scalar value to limit the effect of the Gaussian noise represented by the standard deviation on the actual states.
static float epsM
          Positive scalar value to limit the effect of the momentum vector on the actual states.
 
Constructor Summary
MetastateAttributes()
          Creates a new Metastate with all three vectors (value, deviation and momentum) set to zero.
MetastateAttributes(MetastateVector x, MetastateVector s, MetastateVector m)
          Creates a new Metastate initializing the three vectors to the given parameters.
 
Method Summary
 void affect(MetastateAttributes ma)
          Calculates the effect of a concept on the metastate attributes.
 void calculateNext()
          Calculates the next values of the current metastate and store it in the vector holding the "mean" values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epsG

public static final float epsG
Positive scalar value to limit the effect of the Gaussian noise represented by the standard deviation on the actual states.

epsM

public static final float epsM
Positive scalar value to limit the effect of the momentum vector on the actual states.
Constructor Detail

MetastateAttributes

public MetastateAttributes()
Creates a new Metastate with all three vectors (value, deviation and momentum) set to zero.

MetastateAttributes

public MetastateAttributes(MetastateVector x,
                           MetastateVector s,
                           MetastateVector m)
Creates a new Metastate initializing the three vectors to the given parameters.
Parameters:
x - MetastateVector holding the initial "mean" value
s - MetastateVector holding the initial standard deviation
m - MetastateVector holding the initial momentum
Method Detail

affect

public void affect(MetastateAttributes ma)
Calculates the effect of a concept on the metastate attributes. The current metastate is updated with the given metastate attributes.
Parameters:
ma - metastate attributes of a concept

calculateNext

public void calculateNext()
Calculates the next values of the current metastate and store it in the vector holding the "mean" values.