w2pol::Trapezoid Class Reference

List of all members.

Detailed Description

Represents a Trapezoidal fuzzy function where the inflection points depend on the value of Z.

Author:
Lakshman
Version:
$Id:4


Public Member Functions

float fuzzy (float input, float zval) const
 Returns the fuzzy value given an input value and the Z value.
bool isValid () const
 Is this trapezoid valid?
 Trapezoid ()
 Creates an invalid Trapezoid.
 Trapezoid (const code::XML::Element &e)
 Parses the XML element and creates a Trapezoid.
float weight () const
const std::string & fieldName () const

Classes

struct  Point
 An inflection point on the trapezoid.


Constructor & Destructor Documentation

w2pol::Trapezoid::Trapezoid (  )  [inline]

Creates an invalid Trapezoid.

w2pol::Trapezoid::Trapezoid ( const code::XML::Element &  e  ) 

Parses the XML element and creates a Trapezoid.


Member Function Documentation

const std::string& w2pol::Trapezoid::fieldName (  )  const [inline]

float w2pol::Trapezoid::fuzzy ( float  input,
float  zval 
) const [inline]

Returns the fuzzy value given an input value and the Z value.

bool w2pol::Trapezoid::isValid (  )  const [inline]

Is this trapezoid valid?

float w2pol::Trapezoid::weight (  )  const [inline]


Generated on Fri May 4 13:40:25 2012 for WDSS-IIw2algs by  doxygen 1.4.7