Documentation of 'bayesnet.jayes.BayesNode' Java class
BayesNode
bayesnet.jayes

Class BayesNode



  • public class BayesNode
    extends java.lang.Object
    • Constructor Detail

      • BayesNode

        @Deprecated
        public BayesNode(java.lang.String name)
        Deprecated. use BayesNet.createNode instead
    • Method Detail

      • setProbabilities

        public void setProbabilities(double... probabilities)
        Must be called after the parents and outcomes, and the outcome of the parents are set.
      • getProbabilities

        public double[] getProbabilities()
      • getChildren

        public java.util.List<BayesNode> getChildren()
      • getParents

        public java.util.List<BayesNode> getParents()
      • setParents

        public void setParents(java.util.List<BayesNode> parents)
      • marginalize

        @Deprecated
        public double[] marginalize(java.util.Map<BayesNode,java.lang.String> evidence)
        Deprecated. 
        Marginalizes the conditional distribution with regard to the evidence. This only corresponds to any meaningful probability distribution if all parents are assigned a probability. This method is mostly used for sampling purposes.
      • getId

        public int getId()
      • setId

        @Deprecated
        public void setId(int id)
        Deprecated. internal method, don't use. visibility might change to default
      • addOutcomes

        public void addOutcomes(java.lang.String... names)
      • addOutcome

        public int addOutcome(java.lang.String name)
      • getOutcomeIndex

        public int getOutcomeIndex(java.lang.String name)
      • getOutcomeName

        public java.lang.String getOutcomeName(int index)
      • getOutcomeCount

        public int getOutcomeCount()
      • getOutcomes

        public java.util.List<java.lang.String> getOutcomes()
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.