Documentation ¶
Index ¶
- func Compare(aa, bb rbtree.Item) int
- type IntervalMddStore
- func (b *IntervalMddStore) ClauseIds(n IntervalNode) (v int, level int, des []int)
- func (store *IntervalMddStore) Debug(withTable bool)
- func (mddStore *IntervalMddStore) GetByWeight(level int, weight int64) (id int, wmin, wmax int64)
- func (mddStore *IntervalMddStore) Insert(n IntervalNode) (id int)
- func (store *IntervalMddStore) RemoveRedundants() (removed int)
- type IntervalNode
- type MddStore
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntervalMddStore ¶
type IntervalMddStore struct { NextId int Nodes []*IntervalNode MaxNodes int Top int // contains filtered or unexported fields }
func InitIntervalMdd ¶
func InitIntervalMdd(size int) (b IntervalMddStore)
func (*IntervalMddStore) ClauseIds ¶
func (b *IntervalMddStore) ClauseIds(n IntervalNode) (v int, level int, des []int)
preparation for MDDs, gives out ids of descendants
func (*IntervalMddStore) Debug ¶
func (store *IntervalMddStore) Debug(withTable bool)
func (*IntervalMddStore) GetByWeight ¶
func (mddStore *IntervalMddStore) GetByWeight(level int, weight int64) (id int, wmin, wmax int64)
returns node, if exists
func (*IntervalMddStore) Insert ¶
func (mddStore *IntervalMddStore) Insert(n IntervalNode) (id int)
func (*IntervalMddStore) RemoveRedundants ¶
func (store *IntervalMddStore) RemoveRedundants() (removed int)
cleans the mdd from redundant nodes
type IntervalNode ¶
func (IntervalNode) IsOne ¶
func (node IntervalNode) IsOne() bool
func (IntervalNode) IsZero ¶
func (node IntervalNode) IsZero() bool
Click to show internal directories.
Click to hide internal directories.