clarion.coordinate
Class WeightSumComb

java.lang.Object
  extended byclarion.coordinate.WeightSumComb

public class WeightSumComb
extends java.lang.Object


Constructor Summary
WeightSumComb(int mode, double[] paramArr, double temperature)
          constructor, for old version.
 
Method Summary
 void calcWeights()
          Calculates the weights.
 short[][] combination()
          Combines the outputs from both levels.
 void getWeights(double[] arr)
          Returns the weights.
 void setSuccRate(double[] arr)
          Sets the success rates.
 void setVCGSets(VCGSet[][] compVcgSets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightSumComb

public WeightSumComb(int mode,
                     double[] paramArr,
                     double temperature)
constructor, for old version.

Parameters:
mode - = 0: fixed method which means the weights are fixed, mode = 1: variable method which means the weights are got by calculating.
paramArr - the array of parameter values. mode = 0: carries the values of weights. mode = 1: carries the values of beta.
temperature - the temperature for action decision.
Method Detail

getWeights

public void getWeights(double[] arr)
Returns the weights.

Parameters:
arr - the array to store the weights.

setSuccRate

public void setSuccRate(double[] arr)
Sets the success rates. used in varied mode.

Parameters:
arr - the array to set the success rates.

setVCGSets

public void setVCGSets(VCGSet[][] compVcgSets)

calcWeights

public void calcWeights()
Calculates the weights.


combination

public short[][] combination()
Combines the outputs from both levels. this is the new method since the new format of action is two-dimensional in stead of one-dimensional.

Returns:
the array to store the combined action.