public class BayesNode extends Object
| Constructor and Description |
|---|
BayesNode(String name)
Deprecated.
use
BayesNet.createNode instead |
| Modifier and Type | Method and Description |
|---|---|
int |
addOutcome(String name) |
void |
addOutcomes(String... names) |
List<BayesNode> |
getChildren() |
AbstractFactor |
getFactor() |
int |
getId() |
String |
getName() |
int |
getOutcomeCount() |
int |
getOutcomeIndex(String name) |
String |
getOutcomeName(int index) |
List<String> |
getOutcomes() |
List<BayesNode> |
getParents() |
double[] |
getProbabilities() |
double[] |
marginalize(Map<BayesNode,String> evidence) |
void |
setId(int id)
Deprecated.
internal method, don't use. visibility might change to default
|
void |
setParents(List<BayesNode> parents) |
void |
setProbabilities(double... probabilities)
Must be called after the parents and outcomes, and the outcome of the parents are set.
|
String |
toString() |
@Deprecated public BayesNode(String name)
BayesNet.createNode insteadname - the namepublic void setProbabilities(double... probabilities)
probabilities - probabilities to setpublic double[] getProbabilities()
public int getId()
@Deprecated public void setId(int id)
id - the idpublic void addOutcomes(String... names)
public int addOutcome(String name)
public int getOutcomeIndex(String name)
public String getOutcomeName(int index)
public int getOutcomeCount()
public AbstractFactor getFactor()
public String getName()
Copyright © 2018. All rights reserved.