AURobotServers  4
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
UGradeSet Class Reference

Public Member Functions

bool addGradeLimit (double value, double membGrade)
 set one pair of limits More...
 
void clear ()
 clear More...
 
double getMembershipGrade (double x, bool useWeight=true)
 evaluate grade More...
 
double getWeight ()
 
bool isA (const char *attname)
 
void setAttName (const char *setname)
 set name and weight More...
 
void setAttWeight (double weight)
 
 UGradeSet ()
 

Protected Attributes

double attributeWeight
 weight of this attribute More...
 
double grade [MGC]
 a value less that the first has the grade of the first value More...
 
int gradeCnt
 
double limit [MGC]
 
char name [MNL]
 name of attribute (index) More...
 

Static Protected Attributes

static const int MGC = GNDANA_MAX_GRADE_PNTS
 membershop is desctibed by at maximum of 3 orderd values More...
 
static const int MNL = 10
 

Detailed Description

This class describe the limits for one attribute (to be a member of a patch class) an attribute could be

  1. average height above ground level
  2. average height deviation in a patch
  3. level of green index
  4. level of red index
  5. dominating spatial frequency

Constructor & Destructor Documentation

UGradeSet::UGradeSet ( )
inline

References clear(), and name.

Referenced by UPatchType::addSet().

Member Function Documentation

bool UGradeSet::addGradeLimit ( double  value,
double  membGrade 
)
inline

set one pair of limits

References grade, gradeCnt, limit, and MGC.

Referenced by UFuncGndAna::setFuzzpParamsFromGlobal().

void UGradeSet::clear ( void  )
inline
double UGradeSet::getMembershipGrade ( double  x,
bool  useWeight = true 
)
inline

evaluate grade

References attributeWeight, grade, gradeCnt, and limit.

Referenced by UPatchType::grade().

double UGradeSet::getWeight ( )
inline

get weight for this attribute

References attributeWeight.

Referenced by UPatchType::grade().

bool UGradeSet::isA ( const char *  attname)
inline

compare name of attribute

References name.

Referenced by UPatchTypeSets::getPatchTypeIndex(), and UPatchType::getSet().

void UGradeSet::setAttName ( const char *  setname)
inline

set name and weight

References MNL, and name.

Referenced by UPatchType::addSet().

void UGradeSet::setAttWeight ( double  weight)
inline

Member Data Documentation

double UGradeSet::attributeWeight
protected

weight of this attribute

Referenced by clear(), getMembershipGrade(), getWeight(), and setAttWeight().

double UGradeSet::grade[MGC]
protected

a value less that the first has the grade of the first value

Referenced by addGradeLimit(), and getMembershipGrade().

int UGradeSet::gradeCnt
protected
double UGradeSet::limit[MGC]
protected
const int UGradeSet::MGC = GNDANA_MAX_GRADE_PNTS
staticprotected

membershop is desctibed by at maximum of 3 orderd values

Referenced by addGradeLimit().

const int UGradeSet::MNL = 10
staticprotected
char UGradeSet::name[MNL]
protected

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