Documentation
¶
Index ¶
- Variables
- func ConstructConditionalSupportCountTables(bases ConditionalPatternBases) map[int]SupportCountTable
- func Execute()
- func OrderItems(d DataSet, h HeadTable)
- type ConditionalFPTree
- type ConditionalHeadTable
- type ConditionalHeadTables
- type ConditionalItem
- type ConditionalPatternBase
- type ConditionalPatternBases
- type DataSet
- type FPTree
- type FPTreeNode
- type HeadTable
- type HeadTableRow
- type Items
- type OrderItemsByHeaderTableWrapper
- type OrderableItems
- type OrderableItemsWrapper
- type Pattern
- type SupportCountTable
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "fp-growth",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func ConstructConditionalSupportCountTables ¶
func ConstructConditionalSupportCountTables(bases ConditionalPatternBases) map[int]SupportCountTable
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func OrderItems ¶
Types ¶
type ConditionalFPTree ¶
type ConditionalFPTree struct { Prefix ConditionalItem Tree FPTree }
func ConstructConditionalFPTrees ¶
func ConstructConditionalFPTrees(bs ConditionalPatternBases, ht ConditionalHeadTables) (res []ConditionalFPTree)
func (*ConditionalFPTree) MineFrequentPatterns ¶
func (c *ConditionalFPTree) MineFrequentPatterns() []Pattern
type ConditionalHeadTable ¶
type ConditionalHeadTable struct { Prefix ConditionalItem HeadTable }
func ConstructConditionalHeadTables ¶
func ConstructConditionalHeadTables(bs ConditionalPatternBases, minSup int) []ConditionalHeadTable
type ConditionalHeadTables ¶
type ConditionalHeadTables []ConditionalHeadTable
func ConstructImprovedConditionalHeadTables ¶
func ConstructImprovedConditionalHeadTables(bs ConditionalPatternBases, scts SupportCountTable, minSup int) ConditionalHeadTables
func (ConditionalHeadTables) Get ¶
func (ht ConditionalHeadTables) Get(item int) *ConditionalHeadTable
func (ConditionalHeadTables) GetIndex ¶
func (ht ConditionalHeadTables) GetIndex(item int) int
type ConditionalItem ¶
type ConditionalPatternBase ¶
type ConditionalPatternBase struct { Prefix ConditionalItem Bases [][]ConditionalItem }
type ConditionalPatternBases ¶
type ConditionalPatternBases []ConditionalPatternBase
func MineConditionalPatternBases ¶
func MineConditionalPatternBases(t FPTree, ht HeadTable) ConditionalPatternBases
func OrderConditionalPatternBases ¶
func OrderConditionalPatternBases(bs ConditionalPatternBases, ht ConditionalHeadTables) ConditionalPatternBases
type FPTree ¶
type FPTree struct {
Root *FPTreeNode
}
type FPTreeNode ¶
type FPTreeNode struct { Item int Count int Link *FPTreeNode Parent *FPTreeNode Children []*FPTreeNode }
func (*FPTreeNode) MinePatterns ¶
func (f *FPTreeNode) MinePatterns(p ConditionalItem) []Pattern
func (*FPTreeNode) OnlyOneBranch ¶
func (f *FPTreeNode) OnlyOneBranch() bool
func (*FPTreeNode) String ¶
func (f *FPTreeNode) String() string
type HeadTable ¶
type HeadTable []HeadTableRow
func NewHeadTable ¶
func (HeadTable) Get ¶
func (p HeadTable) Get(id int) HeadTableRow
func (HeadTable) GetPosition ¶
func (HeadTable) SetLink ¶
func (p HeadTable) SetLink(id int, link *FPTreeNode)
type HeadTableRow ¶
type HeadTableRow struct { Item int Count int Link *FPTreeNode }
type OrderItemsByHeaderTableWrapper ¶
func (OrderItemsByHeaderTableWrapper) Less ¶
func (s OrderItemsByHeaderTableWrapper) Less(i, j int) bool
type OrderableItems ¶
type OrderableItems []ConditionalItem
func (OrderableItems) Len ¶
func (p OrderableItems) Len() int
func (OrderableItems) Swap ¶
func (p OrderableItems) Swap(i, j int)
type OrderableItemsWrapper ¶
type OrderableItemsWrapper struct { OrderableItems HT ConditionalHeadTable }
func (OrderableItemsWrapper) Less ¶
func (p OrderableItemsWrapper) Less(i, j int) bool
type SupportCountTable ¶
func ConstructSupportCountTable ¶
func ConstructSupportCountTable(items []Items) SupportCountTable
func (SupportCountTable) Get ¶
func (s SupportCountTable) Get(i, j int) int
Click to show internal directories.
Click to hide internal directories.