|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.coordinate.StochasticComb
Constructor Summary | |
StochasticComb(int mode,
int compNum,
double[] arr)
constructor. |
|
StochasticComb(int mode,
int compNum,
double[] arr,
Global g)
constructor. |
Method Summary | |
void |
calcProbabilities()
Calculates the probabilities. |
int |
selectAction(double[] utilArr)
Selects one action from the action-decision network (such as EX, GS, WM action-decision network) using "boltzmann distribution based on utility" approach based on a chosen component. |
int |
selectAction(int actNum)
Selects randomly one action from the action-decision network (such as EX, GS, WM action-decision network) using "randomly selected" approach based on a chosen component. |
int |
selectAction(int netIdx,
int knowledgeType,
double[] utilArr)
Selects one action from the action-decision network (such as EX, GS, WM action-decision network) using "boltzmann distribution based on utility" approach based on a chosen component. |
int |
selectComponent()
using "radomly selected" approach to select one component on which the chosen actions are based, such as action chosing is based on BL, FR, RER, IRL etc. |
void |
setSuccRate(double[] arr)
Sets the success rates. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StochasticComb(int mode, int compNum, double[] arr)
mode
- = 0: fixed method which means the probs are fixed,
mode = 1: variable method which means the probs are got by calculation.compNum
- the number of components.arr
- the array of parameter values.
mode = 0: carries the values of probabilities.
mode = 1: carries the values of beta.public StochasticComb(int mode, int compNum, double[] arr, Global g)
mode
- = 0: fixed method which means the probs are fixed,
mode = 1: variable method which means the probs are got by calculation.compNum
- the number of components.arr
- the array of parameter values.
mode = 0: carries the values of probabilities.
mode = 1: carries the values of beta.g
- the global settings.Method Detail |
public void setSuccRate(double[] arr)
public void calcProbabilities()
public int selectComponent()
public int selectAction(int actNum)
actNum
- the number of actions in that network.public int selectAction(double[] utilArr)
utilArr
- the array of utilities of action from the chosen component
in that network.public int selectAction(int netIdx, int knowledgeType, double[] utilArr)
netIdx
- the network index.knowledgeType
- the chosen component in that network.utilArr
- the array of utilities of action from the chosen component
in that network.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |