RAVE
|
Implementation of the QI-total algorithm. More...
Go to the source code of this file.
Typedefs | |
typedef struct _RaveQITotal_t | RaveQITotal_t |
Defines QI total. | |
Functions | |
void | RaveQITotal_setDatatype (RaveQITotal_t *self, RaveDataType dtype) |
The data type to use for the resulting field. | |
RaveDataType | RaveQITotal_getDatatype (RaveQITotal_t *self) |
int | RaveQITotal_setGain (RaveQITotal_t *self, double gain) |
The gain to use for the resulting field. | |
double | RaveQITotal_getGain (RaveQITotal_t *self) |
void | RaveQITotal_setOffset (RaveQITotal_t *self, double offset) |
The offset to use for the resulting field. | |
double | RaveQITotal_getOffset (RaveQITotal_t *self) |
int | RaveQITotal_setWeight (RaveQITotal_t *self, const char *howtask, double w) |
Sets the weight for the specified how/task. | |
int | RaveQITotal_getWeight (RaveQITotal_t *self, const char *howtask, double *w) |
Returns the weight for the specified how/task. | |
void | RaveQITotal_removeWeight (RaveQITotal_t *self, const char *howtask) |
Removes the weight for the specified how/task. | |
RaveField_t * | RaveQITotal_multiplicative (RaveQITotal_t *self, RaveObjectList_t *fields) |
Performs the multiplicative QI total algorithm. | |
RaveField_t * | RaveQITotal_additive (RaveQITotal_t *self, RaveObjectList_t *fields) |
Performs the additive QI total algorithm. | |
RaveField_t * | RaveQITotal_minimum (RaveQITotal_t *self, RaveObjectList_t *fields) |
Performs the minimum QI total algorithm. | |
Variables | |
RaveCoreObjectType | RaveQITotal_TYPE |
Type definition to use when creating a rave object. | |
Implementation of the QI-total algorithm.
typedef struct _RaveQITotal_t RaveQITotal_t |
Defines QI total.
RaveField_t * RaveQITotal_additive | ( | RaveQITotal_t * | self, |
RaveObjectList_t * | fields ) |
Performs the additive QI total algorithm.
The weights that are specified for the additive algorithm is the old traditional weighting. I.e., the total sum of the weights are summed. Then each weight is dividied by this sum so that we get a total weight of 1.0. These weights are in turn used on respective field. If a field does not have a weight set, then a default weight will be used for this field which is 1/number of fields.
[in] | self | - self |
[in] | fields | - the quality fields to add |
RaveDataType RaveQITotal_getDatatype | ( | RaveQITotal_t * | self | ) |
[in] | self | - self |
double RaveQITotal_getGain | ( | RaveQITotal_t * | self | ) |
[in] | self | - self |
double RaveQITotal_getOffset | ( | RaveQITotal_t * | self | ) |
[in] | self | - self |
int RaveQITotal_getWeight | ( | RaveQITotal_t * | self, |
const char * | howtask, | ||
double * | w ) |
Returns the weight for the specified how/task.
[in] | self | - self |
[in] | howtask | the how/task name for the field |
[out] | w | the weight for specified how/task. |
RaveField_t * RaveQITotal_minimum | ( | RaveQITotal_t * | self, |
RaveObjectList_t * | fields ) |
Performs the minimum QI total algorithm.
[in] | self | - self |
[in] | fields | - the quality fields to test for min |
RaveField_t * RaveQITotal_multiplicative | ( | RaveQITotal_t * | self, |
RaveObjectList_t * | fields ) |
Performs the multiplicative QI total algorithm.
[in] | self | - self |
[in] | fields | - the quality fields to multiply |
void RaveQITotal_removeWeight | ( | RaveQITotal_t * | self, |
const char * | howtask ) |
Removes the weight for the specified how/task.
[in] | self | - self |
[in] | howtas | - the how/task name for the field |
void RaveQITotal_setDatatype | ( | RaveQITotal_t * | self, |
RaveDataType | dtype ) |
The data type to use for the resulting field.
[in] | self | - self |
[in] | dtype | - the data type |
int RaveQITotal_setGain | ( | RaveQITotal_t * | self, |
double | gain ) |
The gain to use for the resulting field.
[in] | self | - self |
[in] | gain | - the gain |
void RaveQITotal_setOffset | ( | RaveQITotal_t * | self, |
double | offset ) |
The offset to use for the resulting field.
[in] | self | - self |
[in] | offset | - the offset |
int RaveQITotal_setWeight | ( | RaveQITotal_t * | self, |
const char * | howtask, | ||
double | w ) |
Sets the weight for the specified how/task.
The weights are used differently for the different algorithms, please look at the corresponding function on how the weights are used.
[in] | howtask | the how/task name for the field |
[in] | w | the weight, must be >= 0 and preferably below 1.0. |
|
extern |
Type definition to use when creating a rave object.