fullquottel
Public Member Functions | Public Attributes
RatioRating Struct Reference

structure to store the rating of an ratio test: More...

Inheritance diagram for RatioRating:
RatingBase

List of all members.

Public Member Functions

double rate (double value) const
 RatioRating ()
- Public Member Functions inherited from RatingBase
 RatingBase ()

Public Attributes

double threshold
double factor
- Public Attributes inherited from RatingBase
bool active
 to turn the test on and off.
double score
 score that should be added if the test succeeds.

Detailed Description

structure to store the rating of an ratio test:

resultscore = (value >= threshold) ? score + value * factor : 0;


Constructor & Destructor Documentation

RatioRating::RatioRating ( )

Member Function Documentation

double RatioRating::rate ( double  value) const

Member Data Documentation

double RatioRating::threshold
double RatioRating::factor

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