Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (69 sloc) 2.252 kB
/*!
* @file id3missing.h
* @brief Treating of missing values.
* @author Mihai Maruseac (mihai@rosedu.org)
*
* @section DESCRIPTION
* IAUT1: ID3: Treating of missing values.
*
* Contains the various implementations of routines to treat missing
* attributes from the description.
*
* @section QUOTE
* Intelligence is what you use when you don't know what to do. (Jean Piaget)
*
* @bug No known bugs.
*/
#ifndef _ID3MISS_H
#define _ID3MISS_H
/**
* @brief Treats missing numeric attributes by filling with the average of the
* other values.
*
* @param lset The learning set
* @param attr_index Index of attribute with missing values
* @param miss_index Index in missing structure.
*/
void numeric_maj_fill_missing(struct example_set *lset, int attr_index,
int miss_index);
/**
* @brief Treats missing numeric attributes by using probability theory.
*
* Because the numitors in the formulas are always constant, this function
* uses only integer operations to give better results.
*
* @param descr The description
* @param lset The learning set
* @param attr_index Index of attribute with missing values
* @param miss_index Index in missing structure.
*/
void numeric_prb_fill_missing(const struct description *descr,
struct example_set *lset, int attr_index,
int miss_index);
/**
* @brief Treats missing discrete attributes by filling with the average of the
* other values.
*
* @param descr The description
* @param lset The learning set
* @param attr_index Index of attribute with missing values
* @param miss_index Index in missing structure.
*/
void discrete_maj_fill_missing(const struct description *descr,
struct example_set *lset, int attr_index,
int miss_index);
/**
* @brief Treats missing discrete attributes by using probability theory.
*
* Because the numitors in the formulas are always constant, this function
* uses only integer operations to give better results.
*
* @param descr The description
* @param lset The learning set
* @param attr_index Index of attribute with missing values
* @param miss_index Index in missing structure.
*/
void discrete_prb_fill_missing(const struct description *descr,
struct example_set *lset, int attr_index,
int miss_index);
#endif
Jump to Line
Something went wrong with that request. Please try again.