14 #ifndef __MISSINGVALUES_H__
15 #define __MISSINGVALUES_H__
37 #include "../tinyxml2/tinyxml2.h"
105 Item(
const size_t& new_instance_index,
const size_t& new_variable_index)
156 return(
items.size());
162 const Item&
get_item(
const size_t&)
const;
174 void set(
const size_t&,
const size_t&);
175 void set(
const tinyxml2::XMLDocument&);
192 void set_item(
const size_t&,
const size_t&,
const size_t&);
194 void append(
const size_t&,
const size_t&);
217 void print(
void)
const;
219 tinyxml2::XMLDocument*
to_XML(
void)
const;
220 void from_XML(
const tinyxml2::XMLDocument&);
std::string write_scrubbing_method_text(void) const
Returns a string with the name of the method used for scrubbing, as paragaph text.
void convert_time_series(const size_t &)
ScrubbingMethod get_scrubbing_method(void) const
Returns the method to be used for dealing with the missing values.
bool display
Display messages to screen.
MissingValues & operator=(const MissingValues &)
virtual ~Item(void)
Destructor.
ScrubbingMethod
Enumeration of available activation functions for the perceptron neuron model.
Item(const size_t &new_instance_index, const size_t &new_variable_index)
Indices constructor.
void set_instances_number(const size_t &)
Sets the number of data set instances in this object.
void set_item(const size_t &, const size_t &, const size_t &)
Sets the indices.
Vector< size_t > arrange_missing_instances(void) const
Returns a vector with the indices of those instances with missing values.
bool operator==(const MissingValues &) const
const Vector< Item > & get_items(void) const
Returns a constant reference to the vector of missing value items.
void convert_autoassociation(void)
bool has_missing_values(void) const
size_t variables_number
Number of variables.
tinyxml2::XMLDocument * to_XML(void) const
Item(void)
Default constructor.
Vector< size_t > get_missing_values_numbers(void) const
size_t variable_index
Column index for missing value.
Vector< Item > items
Missing values.
void print(void) const
Prints to the screen information about the missing values object.
Vector< size_t > arrange_missing_variables(void) const
Returns a vector with the indices of those variables with missing values.
void set_display(const bool &)
void append(const size_t &, const size_t &)
void set_items(const Vector< Item > &)
Sets a new vector of missing value items.
const Item & get_item(const size_t &) const
const bool & get_display(void) const
size_t instance_index
Row index for missing value.
void set_missing_values_number(const size_t &)
void set(void)
Sets a missing values object with zero instances, variables and missing values.
bool is_missing_value(const size_t &, const size_t &) const
ScrubbingMethod scrubbing_method
Method for handling missing values.
std::string to_string(void) const
Returns a string representation of the current MissingValues object.
size_t get_instances_number(void) const
Returns the number of instances in the data set.
void set_variables_number(const size_t &)
Sets the number of data set variables in this object.
void from_XML(const tinyxml2::XMLDocument &)
virtual ~MissingValues(void)
Destructor.
size_t count_missing_instances(void) const
Returns the number of instances with missing values.
size_t get_variables_number(void) const
Returns the number of variables in the data set.
std::string write_scrubbing_method(void) const
Returns a string with the name of the method used for scrubbing.
size_t instances_number
Number of instances.
void set_scrubbing_method(const ScrubbingMethod &)
size_t get_missing_values_number(void) const
Returns the number of missing values in the data set.
bool operator==(const Item &other_item) const
Vector< Vector< size_t > > arrange_missing_indices(void) const