|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.tools.StochasticDecider
Field Summary | |
protected double |
BoltzmannSum
|
protected double[] |
elementsArr
the array of elements. |
protected int |
size
the size of elements in this decider. |
protected double |
temperature
temperature for action-decision making. |
protected double |
threshold
threshold. |
Constructor Summary | |
StochasticDecider()
|
|
StochasticDecider(double temper)
constructor. |
|
StochasticDecider(int nSize,
double temper)
constructor. |
Method Summary | |
short[][] |
getMultiRecommendation(double[] els,
short[] dimVals)
Returns action recommendation with multiple active values in some dimensions. |
int |
getRecommendation()
Returns the action recommendation. |
int |
getRecommendation(double[] els)
Returns the action recommendation given the array of action activations. |
int |
getRecommendation(double[] els,
int len)
Returns the action recommendation given the array of action activations and a limit on the length of elements in the array from position 0 those are eligible candidates. |
int |
getRecommendation(double[] els,
int start,
int end)
Returns the action recommendation given the array of action activations and a limit on start position and end position in the array within the range the elements are eligible candidates. |
short[] |
getRecommendation(double[] els,
short[] dimVals)
Returns the action recommendation given the arrray of action activations and the array of value number info of each dimension. |
void |
setElements(double[] els)
Sets the elements in this decider. |
void |
setSize(int length)
Sets the size of elments in this decider. |
void |
setTemperature(double temper)
Sets the temperature of this decider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int size
protected double threshold
protected double temperature
protected double BoltzmannSum
protected double[] elementsArr
Constructor Detail |
public StochasticDecider()
public StochasticDecider(int nSize, double temper)
nSize
- the size of elements.temper
- the temperature of this decider.public StochasticDecider(double temper)
temper
- the temperature of the decider.Method Detail |
public void setSize(int length)
length
- the size to set.public void setTemperature(double temper)
temper
- the temperature to set.public void setElements(double[] els)
els
- the elements to set.public int getRecommendation()
public int getRecommendation(double[] els)
els
- the array of action activations.
public int getRecommendation(double[] els, int len)
els
- the array of action activations.len
- the length of eligible candidates.
public int getRecommendation(double[] els, int start, int end)
els
- the array of action activations.start
- the start position.end
- the end position.
public short[] getRecommendation(double[] els, short[] dimVals)
els
- the array of action activations.dimVals
- the array of value number info of each dimension.
public short[][] getMultiRecommendation(double[] els, short[] dimVals)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |