mageec  0.1.0
MAchine Guided Energy Efficient Compilation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
formtree.c File Reference
#include "defns.i"
#include "extern.i"

Go to the source code of this file.

Macros

#define SAMPLEUNIT   2000
 

Functions

void InitialiseTreeData ()
 
void FreeTreeData ()
 
void SetMinGainThresh ()
 
void FormTree (CaseNo Fp, CaseNo Lp, int Level, Tree *Result)
 
void SampleEstimate (CaseNo Fp, CaseNo Lp, CaseCount Cases)
 
void Sample (CaseNo Fp, CaseNo Lp, CaseNo N)
 
Attribute ChooseSplit (CaseNo Fp, CaseNo Lp, CaseCount Cases, Boolean Sampled)
 
void ProcessQueue (CaseNo WFp, CaseNo WLp, CaseCount WCases)
 
Attribute FindBestAtt (CaseCount Cases)
 
void EvalDiscrSplit (Attribute Att, CaseCount Cases)
 
void Divide (Tree T, CaseNo Fp, CaseNo Lp, int Level)
 
CaseNo Group (DiscrValue V, CaseNo Bp, CaseNo Ep, Tree TestNode)
 
CaseCount SumWeights (CaseNo Fp, CaseNo Lp)
 
CaseCount SumNocostWeights (CaseNo Fp, CaseNo Lp)
 
void FindClassFreq (double *CF, CaseNo Fp, CaseNo Lp)
 
void FindAllFreq (CaseNo Fp, CaseNo Lp)
 

Variables

Boolean MultiVal
 
Boolean Subsample
 
float AvGainWt
 
float MDLWt
 
AttributeDList =Nil
 
int NDList
 
DiscrValue MaxLeaves
 
float ValThresh
 
Boolean Sampled
 
AttributeWaiting =Nil
 
Attribute NWaiting =0
 

Macro Definition Documentation

#define SAMPLEUNIT   2000

Definition at line 49 of file formtree.c.

Function Documentation

Attribute ChooseSplit ( CaseNo  Fp,
CaseNo  Lp,
CaseCount  Cases,
Boolean  Sampled 
)

Definition at line 585 of file formtree.c.

void Divide ( Tree  T,
CaseNo  Fp,
CaseNo  Lp,
int  Level 
)

Definition at line 835 of file formtree.c.

void EvalDiscrSplit ( Attribute  Att,
CaseCount  Cases 
)

Definition at line 779 of file formtree.c.

void FindAllFreq ( CaseNo  Fp,
CaseNo  Lp 
)

Definition at line 1121 of file formtree.c.

Attribute FindBestAtt ( CaseCount  Cases)

Definition at line 705 of file formtree.c.

void FindClassFreq ( double *  CF,
CaseNo  Fp,
CaseNo  Lp 
)

Definition at line 1091 of file formtree.c.

void FormTree ( CaseNo  Fp,
CaseNo  Lp,
int  Level,
Tree Result 
)

Definition at line 338 of file formtree.c.

void FreeTreeData ( )

Definition at line 192 of file formtree.c.

CaseNo Group ( DiscrValue  V,
CaseNo  Bp,
CaseNo  Ep,
Tree  TestNode 
)

Definition at line 954 of file formtree.c.

void InitialiseTreeData ( )

Definition at line 67 of file formtree.c.

void ProcessQueue ( CaseNo  WFp,
CaseNo  WLp,
CaseCount  WCases 
)

Definition at line 653 of file formtree.c.

void Sample ( CaseNo  Fp,
CaseNo  Lp,
CaseNo  N 
)

Definition at line 556 of file formtree.c.

void SampleEstimate ( CaseNo  Fp,
CaseNo  Lp,
CaseCount  Cases 
)

Definition at line 496 of file formtree.c.

void SetMinGainThresh ( )

Definition at line 279 of file formtree.c.

CaseCount SumNocostWeights ( CaseNo  Fp,
CaseNo  Lp 
)

Definition at line 1066 of file formtree.c.

CaseCount SumWeights ( CaseNo  Fp,
CaseNo  Lp 
)

Definition at line 1041 of file formtree.c.

Variable Documentation

float AvGainWt

Definition at line 41 of file formtree.c.

Attribute* DList =Nil

Definition at line 44 of file formtree.c.

DiscrValue MaxLeaves

Definition at line 47 of file formtree.c.

float MDLWt

Definition at line 41 of file formtree.c.

Boolean MultiVal

Definition at line 39 of file formtree.c.

int NDList

Definition at line 45 of file formtree.c.

Attribute NWaiting =0

Definition at line 55 of file formtree.c.

Boolean Sampled

Definition at line 52 of file formtree.c.

Boolean Subsample

Definition at line 39 of file formtree.c.

float ValThresh

Definition at line 51 of file formtree.c.

Attribute* Waiting =Nil

Definition at line 54 of file formtree.c.