public class AMALOM
extends java.lang.Object
Constructor and Description |
---|
AMALOM(int nbrOfActions,
int nbrOfPerceptions,
double incrementValue,
int memorySize,
double precision,
double followingCoefficient,
ModelConstruction typeOfModelConstruction)
Instantiates a new amalom.
|
Modifier and Type | Method and Description |
---|---|
void |
adaptModel()
Adapt model.
|
double[] |
convertPerceptHashMapToTab(java.util.HashMap<java.lang.String,java.lang.Double> map)
Convert percept hash map to tab.
|
static java.lang.String[] |
copyTab(java.lang.String[] tab)
Copy tab.
|
void |
diplayVariations(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations)
Diplay variations.
|
void |
displayModel()
Display model.
|
void |
displaySensibilities()
Display sensibilities.
|
static void |
displayTab(double[] tab,
java.lang.String info)
Display tab.
|
AgentSensibility |
getAgentSensibility(int nbr)
Gets the agent sensibility.
|
AgentSensibility |
getSensibilityAgent(java.lang.Object key)
Gets the sensibility agent.
|
void |
learn(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations,
java.util.HashMap<java.lang.String,java.lang.Double> actions)
Learn.
|
double[] |
request(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations,
java.util.HashMap<java.lang.String,java.lang.Double> goal)
Request.
|
java.lang.String[] |
sort(java.lang.Double[] tab)
Sort.
|
void |
stopWriting()
Stop writing.
|
void |
updateSensibility(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations,
java.util.HashMap<java.lang.String,java.lang.Double> actions)
Update sensibility.
|
void |
updateSensibilityNormalizingTerms(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations,
java.util.HashMap<java.lang.String,java.lang.Double> actions)
Update sensibility normalizing terms.
|
public AMALOM(int nbrOfActions, int nbrOfPerceptions, double incrementValue, int memorySize, double precision, double followingCoefficient, ModelConstruction typeOfModelConstruction)
nbrOfActions
- the nbr of actionsnbrOfPerceptions
- the nbr of perceptionsincrementValue
- the increment valuememorySize
- the memory sizeprecision
- the precisionfollowingCoefficient
- the following coefficienttypeOfModelConstruction
- the type of model constructionpublic void diplayVariations(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations)
perceptVariations
- the percept variationspublic void learn(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations, java.util.HashMap<java.lang.String,java.lang.Double> actions)
perceptVariations
- the percept variationsactions
- the actionspublic void updateSensibility(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations, java.util.HashMap<java.lang.String,java.lang.Double> actions)
perceptVariations
- the percept variationsactions
- the actionspublic AgentSensibility getAgentSensibility(int nbr)
nbr
- the nbrpublic double[] request(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations, java.util.HashMap<java.lang.String,java.lang.Double> goal)
perceptVariations
- the percept variationsgoal
- the goalpublic void updateSensibilityNormalizingTerms(java.util.HashMap<java.lang.String,java.lang.Double> perceptVariations, java.util.HashMap<java.lang.String,java.lang.Double> actions)
perceptVariations
- the percept variationsactions
- the actionspublic void adaptModel()
public void displayModel()
public void displaySensibilities()
public java.lang.String[] sort(java.lang.Double[] tab)
tab
- the tabpublic static void displayTab(double[] tab, java.lang.String info)
tab
- the tabinfo
- the infopublic static java.lang.String[] copyTab(java.lang.String[] tab)
tab
- the tabpublic AgentSensibility getSensibilityAgent(java.lang.Object key)
key
- the keypublic double[] convertPerceptHashMapToTab(java.util.HashMap<java.lang.String,java.lang.Double> map)
map
- the mappublic void stopWriting()