BioFunctionalDesigner  1.0
 All Classes Functions
Public Member Functions | List of all members
com.sanmixy.core.AprioriNew Class Reference

Find the relation among parts. More...

Public Member Functions

 AprioriNew (String[][] cirs)
 Construct function. More...
 
void scan ()
 scan data from files

Exceptions
IOException

 
void addItem (HashMap< String, Double > map, String key)
 Add Item to map. Check whether the map contains the key or not. More...
 
void getSingleItemMap ()
 Get the single items from the source sequence and put them into the map.
 
void getDoubleItemMap ()
 Get the double items from the source sequence and add them into the map.
 
void getTripleItemMap ()
 Get the triple parts items from the source sequence and add them into the map.
 
void getQuadraItemMap ()
 Get the quedra parts items from the source sequence and add them into the map.
 
void getPentaItemMap ()
 Get the penta parts items from the source sequence and add them into the map.
 
void setProb (int sum, Set< Entry< String, Double >> entries, HashMap< String, Double > map, int index)
 Calculate the strength of the relations. More...
 
void getProbOfItems ()
 Get the strength of these items.
 
int getSum (int index)
 Get the sum of each type of relation.
 
void show (HashMap< String, Double > map)
 Print data. More...
 
void export ()
 Put the rules into the files.
 
void func ()
 Pack all the operations together.
 

Detailed Description

Find the relation among parts.

Author
Xia Yu
Version
1.0

Constructor & Destructor Documentation

com.sanmixy.core.AprioriNew.AprioriNew ( String  cirs[][])

Construct function.

Parameters
cirs
Returns
A AprioriNew object.

Member Function Documentation

void com.sanmixy.core.AprioriNew.addItem ( HashMap< String, Double >  map,
String  key 
)

Add Item to map. Check whether the map contains the key or not.

Parameters
map
key
void com.sanmixy.core.AprioriNew.setProb ( int  sum,
Set< Entry< String, Double >>  entries,
HashMap< String, Double >  map,
int  index 
)

Calculate the strength of the relations.

Parameters
sum
entries
map
index
void com.sanmixy.core.AprioriNew.show ( HashMap< String, Double >  map)

Print data.

Parameters
map

The documentation for this class was generated from the following file: