LGames
Class ANMeaning

java.lang.Object
  |
  +--LGames.ANMeaning

public class ANMeaning
extends java.lang.Object

This class implements the representations of meanings. Meanings are represented as Adaptive Radial Basis Networks, though not yet completed. They actually function as prototypes The class controls the meaning and implements certain operations that can be performed on this representation.

Copyright (c) 2004 Paul Vogt


Field Summary
protected  int dim
           
protected  double initialWeight
           
protected  DoubleArray rbf
           
protected  double std
           
protected  DoubleArray w
           
protected  double y
           
protected  double z
           
 
Constructor Summary
ANMeaning()
          Empty constructor
ANMeaning(int d, double x)
          Constructs a radial basis function (ANMeaning) for dimension d and with a center point x.
 
Method Summary
 void addLocalUnit(int d, double x)
          This function is not used currently.
 void addTarget(int a)
          This function is not used currently.
 double avgCenter()
           
 boolean decayWeights()
          This function is not used currently.
 double evalY(int ts, double x)
          Function to evaluate the activation value for the given feature
 int getCover()
           
 int getDim()
           
 IntArray getTargets()
          This function is not used currently.
 boolean notExists(java.util.List o)
          Checks if the current meaning is an element of the ontology.
 java.lang.String toString()
           
 void updateWeights(int d, double x)
          This function is not used currently.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dim

protected int dim

rbf

protected DoubleArray rbf

w

protected DoubleArray w

initialWeight

protected final double initialWeight
See Also:
Constant Field Values

std

protected final double std
See Also:
Constant Field Values

z

protected double z

y

protected double y
Constructor Detail

ANMeaning

public ANMeaning()
Empty constructor


ANMeaning

public ANMeaning(int d,
                 double x)
Constructs a radial basis function (ANMeaning) for dimension d and with a center point x. Basically, it is an categorical feature at dimension d with value x

Parameters:
d - dimension
x - the feature value
Method Detail

evalY

public double evalY(int ts,
                    double x)
Function to evaluate the activation value for the given feature

Parameters:
ts - a timestamp
x - the feature value
Returns:
the activation value

notExists

public boolean notExists(java.util.List o)
Checks if the current meaning is an element of the ontology.

Parameters:
o - the ontology
Returns:
false if the meaning is in the ontology, true if not.

addLocalUnit

public void addLocalUnit(int d,
                         double x)
This function is not used currently.


updateWeights

public void updateWeights(int d,
                          double x)
This function is not used currently.


decayWeights

public boolean decayWeights()
This function is not used currently.


avgCenter

public double avgCenter()
Returns:
the center (categorical feature) of the meaning

getTargets

public IntArray getTargets()
This function is not used currently.


addTarget

public void addTarget(int a)
This function is not used currently.


getDim

public int getDim()
Returns:
the dimension of the meaning

getCover

public int getCover()
Returns:
the cover of the meaning

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the meaning.