public class LocalModelMillerRegression extends LocalModelAgent implements java.io.Serializable
Constructor and Description |
---|
LocalModelMillerRegression(World world)
Instantiates a new local model miller regression.
|
Modifier and Type | Method and Description |
---|---|
void |
computeAMessage(Message m)
Compute A message.
|
double[] |
getCoef()
Gets the coef.
|
java.lang.String |
getFormula(Context context)
Gets the formula.
|
double |
getProposition(Context context)
Gets the proposition.
|
double |
getProposition(Context context,
Percept p1,
Percept p2,
double v1,
double v2)
Version of getProposition for 2D display.
|
java.util.ArrayList<? extends Agent> |
getTargets()
Gets the targets.
|
void |
setCoef(double[] coef)
Sets the coef.
|
void |
updateModel(Context context)
Update model.
|
die
getWorld, play, setWorld
getID, getMessages, getMessagesBin, getName, isDying, readMessage, sendExpressMessage, sendMessage, sendMessage, setDying, setID, setMessages, setMessagesBin, setName
public LocalModelMillerRegression(World world)
world
- the worldpublic void setCoef(double[] coef)
coef
- the new coefpublic double[] getCoef()
public java.util.ArrayList<? extends Agent> getTargets()
SystemAgent
getTargets
in class LocalModelAgent
public void computeAMessage(Message m)
Agent
computeAMessage
in class LocalModelAgent
m
- the mpublic double getProposition(Context context)
LocalModelAgent
getProposition
in class LocalModelAgent
context
- the contextpublic double getProposition(Context context, Percept p1, Percept p2, double v1, double v2)
LocalModelAgent
getProposition
in class LocalModelAgent
context
- the contextp1
- the p 1p2
- the p 2v1
- the v 1v2
- the v 2public java.lang.String getFormula(Context context)
LocalModelAgent
getFormula
in class LocalModelAgent
context
- the contextpublic void updateModel(Context context)
LocalModelAgent
updateModel
in class LocalModelAgent
context
- the context