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.
|
diegetWorld, play, setWorldgetID, getMessages, getMessagesBin, getName, isDying, readMessage, sendExpressMessage, sendMessage, sendMessage, setDying, setID, setMessages, setMessagesBin, setNamepublic LocalModelMillerRegression(World world)
world - the worldpublic void setCoef(double[] coef)
coef - the new coefpublic double[] getCoef()
public java.util.ArrayList<? extends Agent> getTargets()
SystemAgentgetTargets in class LocalModelAgentpublic void computeAMessage(Message m)
AgentcomputeAMessage in class LocalModelAgentm - the mpublic double getProposition(Context context)
LocalModelAgentgetProposition in class LocalModelAgentcontext - the contextpublic double getProposition(Context context, Percept p1, Percept p2, double v1, double v2)
LocalModelAgentgetProposition in class LocalModelAgentcontext - the contextp1 - the p 1p2 - the p 2v1 - the v 1v2 - the v 2public java.lang.String getFormula(Context context)
LocalModelAgentgetFormula in class LocalModelAgentcontext - the contextpublic void updateModel(Context context)
LocalModelAgentupdateModel in class LocalModelAgentcontext - the context