Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

BadnessStruct Struct Reference
[Eval - routines to evaluate constraint formulas]

#include <eval.h>

Collaboration diagram for BadnessStruct:

Collaboration graph
[legend]

Detailed Description

Generalized score for comparing any two structures.

This structure counts both the total number of constraint violations (called `conflicts' henceforth) and the number of hard conflicts (those with score 0.0). The field soft is the product of the penalties of all soft (non-zero) conflicts. Note that this structure allows different criteria for comparing two analyses; the function bCompare() is provided as one method, but others could be devised.

Definition at line 54 of file eval.h.

Data Fields

int hard
int no
Number soft


Field Documentation

int BadnessStruct::hard
 

number of hard conflicts Definition at line 56 of file eval.h.

Referenced by bAdd(), bAddBadness(), bClone(), bCompare(), bEqual(), bNew(), bPrint(), bSubtract(), bSubtractBadness(), comCompareAllLvPairs(), and comCompareWithContext().

int BadnessStruct::no
 

number of conflicts Definition at line 55 of file eval.h.

Referenced by bAdd(), bAddBadness(), bClone(), bNew(), bPrint(), bSubtract(), bSubtractBadness(), comCompareAllLvPairs(), and comCompareWithContext().

Number BadnessStruct::soft
 

combined effect of soft conflicts Definition at line 57 of file eval.h.

Referenced by bAdd(), bAddBadness(), bClone(), bCompare(), bEqual(), bNew(), bPrint(), bSubtract(), bSubtractBadness(), comCompareAllLvPairs(), and comCompareWithContext().


The documentation for this struct was generated from the following file:
CDG 0.95 (20 Oct 2004)