fpgrowth

package
v0.0.0-...-dbefbc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FPNode

type FPNode struct {
	Item      int
	Frequency uint
	Link      *FPNode
	Parent    *FPNode
	Children  []*FPNode
}

func NewFPNode

func NewFPNode(item int, parent *FPNode) *FPNode

type FPTree

type FPTree struct {
	Root                    *FPNode
	HeaderTable             map[int]*FPNode
	MinimumSupportThreshold uint
}

func NewFPTree

func NewFPTree(transactions ItemSet, minimumSupportThreshold uint) *FPTree

func (*FPTree) Growth

func (fp *FPTree) Growth() []Pattern

func (*FPTree) HeaderTableSize

func (fp *FPTree) HeaderTableSize() int

func (*FPTree) IsEmpty

func (fp *FPTree) IsEmpty() bool

func (*FPTree) ProcessNode

func (fp *FPTree) ProcessNode(patternChan chan []Pattern, currentItem int, node *FPNode)

type ItemSet

type ItemSet map[int][]int

type Pair

type Pair struct {
	Item      int
	Frequency uint
}

type PairList

type PairList []Pair

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

type Pattern

type Pattern struct {
	Items     []int
	Frequency uint
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL