clarion.acs
Class VCG

java.lang.Object
  extended byclarion.acs.VCG

public class VCG
extends java.lang.Object


Field Summary
protected  double[] activations
          the activations.
protected  int candidate
          the candidate.
protected  int elementNum
          the number of elements.
 
Constructor Summary
VCG(int elementNum)
          constructor.
 
Method Summary
 int decideCandidate()
          Decides the candidate.
 double[] getActivations()
          Returns the activations.
 int getCandidate()
          Returns the candidate.
 int getElementNum()
          Returns the number of elements.
 double getMaxActivation()
          Returns the MAX activation in this VCG.
 void setActivations(double[] activations)
          Sets the activations.
 void setActivations(int activeValue)
          Sets the activations.
 void setCandidate(int candidate)
          Sets the candidate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementNum

protected int elementNum
the number of elements.


candidate

protected int candidate
the candidate.


activations

protected double[] activations
the activations.

Constructor Detail

VCG

public VCG(int elementNum)
constructor.

Parameters:
elementNum - the number of elements.
Method Detail

getElementNum

public int getElementNum()
Returns the number of elements.

Returns:
the number of elements.

getCandidate

public int getCandidate()
Returns the candidate.

Returns:
the candidate.

getActivations

public double[] getActivations()
Returns the activations.

Returns:
the activations.

getMaxActivation

public double getMaxActivation()
Returns the MAX activation in this VCG.

Returns:
the MAX activation in this VCG.

setCandidate

public void setCandidate(int candidate)
Sets the candidate.

Parameters:
candidate - the candidate to set.

setActivations

public void setActivations(double[] activations)
Sets the activations.

Parameters:
activations - the activations to set.

setActivations

public void setActivations(int activeValue)
Sets the activations.

Parameters:
activeValue - the active value (candidate) to set.

decideCandidate

public int decideCandidate()
Decides the candidate. used in BL operations.

Returns:
the candidate.