Documentation
¶
Index ¶
- type Network
- func (n *Network) GenerateConsistentSample(possibilities map[string][]string, rng RNG) (map[string]string, bool)
- func (n *Network) GenerateSample(input map[string]string, rng RNG) map[string]string
- func (n *Network) Node(name string) (*Node, bool)
- func (n *Network) Nodes() []*Node
- func (n *Network) PossibleValues(name string) []string
- func (n *Network) PossibleValuesFromConstraints(possibilities map[string][]string) (map[string][]string, error)
- type Node
- func (n *Node) Name() string
- func (n *Node) ParentNames() []string
- func (n *Node) PossibleValues() []string
- func (n *Node) Probabilities(parentValues map[string]string) map[string]float64
- func (n *Node) Sample(parentValues map[string]string, rng RNG) string
- func (n *Node) SampleRestricted(parentValues map[string]string, possibilities []string, ...) (string, bool)
- type RNG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func (*Network) GenerateConsistentSample ¶
func (*Network) GenerateSample ¶
func (*Network) PossibleValues ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) ParentNames ¶
func (*Node) PossibleValues ¶
func (*Node) Probabilities ¶
Click to show internal directories.
Click to hide internal directories.