#include <ms_imputation.hpp>
|
void | appendErrors (const ms_errors &src) |
| Copies all errors from another instance and appends them at the end of own list.
|
|
void | clearAllErrors () |
| Remove all errors from the current list of errors.
|
|
void | copyFrom (const ms_errors *right) |
| Use this member to make a copy of another instance.
|
|
std::vector< std::vector< ms_imputation_missing_val > > & | getDataWithMissing () |
| Get the data array that the imputation method will impute.
|
|
const ms_errs * | getErrorHandler () const |
| Retrive the error object using this function to get access to all errors and error parameters.
|
|
int | getLastError () const |
| Return the error description of the last error that occurred.
|
|
std::string | getLastErrorString () const |
| Return the error description of the last error that occurred.
|
|
bool | isValid () const |
| Call this function to determine if there have been any errors.
|
|
|
| ms_imputation_method ()=default |
| Default constructor.
|
|
void | averageFindAverage () |
| Find average of each column.
|
|
std::vector< std::vector< double > > | changems_imputation_missing_valArrayToDoubleArray (std::vector< std::vector< ms_imputation_missing_val > > dataProcess) |
| Extracts only the values from a 2d array of missing value objects.
|
|
std::vector< double > | changems_imputation_missing_valVecToDoubleVec (std::vector< ms_imputation_missing_val > missingObservation) |
| Extracts only the values from a vector of missing value objects.
|
|
std::vector< double > | getKnownValues (std::vector< ms_imputation_missing_val >) |
| Loop over one observation and get not missing values.
|
|
std::vector< int > | getMissingIndexes (std::vector< ms_imputation_missing_val >) |
| Loop over one observation and get missing indexes.
|
|
std::vector< std::vector< int > > | removeDuplicateIndexes (std::vector< std::vector< int > > duplicateIndexes) |
| The same combination of missing indexes can appear multiple times within a dataset. Duplicate indexes are removed from the missing indexes list to avoid making repeated alglib models.
|
|
void | setDataWithMissing (const std::vector< std::vector< ms_imputation_missing_val > > &dataWithMissingIn) |
|
ms_imputation_method is an abstract class; use ms_imputation_fixed_value, ms_imputation_average_value, ms_imputation_knn or ms_imputation_missforest
- EXPERIMENTAL
- This class is EXPERIMENTAL. Both the API and the implementation may change in a future version of Parser.
◆ appendErrors()
Copies all errors from another instance and appends them at the end of own list.
- Parameters
-
◆ clearAllErrors()
◆ copyFrom()
Use this member to make a copy of another instance.
- Parameters
-
right | is the source to initialise from |
◆ getErrorHandler()
const ms_errs * getErrorHandler |
( |
| ) |
const |
|
inherited |
◆ getLastError()
int getLastError |
( |
| ) |
const |
|
inherited |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
See Error Handling.
- See also
- isValid(), getLastErrorString(), clearAllErrors(), getErrorHandler()
- Returns
- the error number of the last error, or 0 if there have been no errors.
◆ getLastErrorString()
std::string getLastErrorString |
( |
| ) |
const |
|
inherited |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
- Returns
- Most recent error, warning, information or debug message
See Error Handling.
- See also
- isValid(), getLastError(), clearAllErrors(), getErrorHandler()
- Examples
- common_error.cpp, config_enzymes.cpp, config_fragrules.cpp, config_license.cpp, config_mascotdat.cpp, config_masses.cpp, config_modfile.cpp, config_procs.cpp, config_quantitation.cpp, config_taxonomy.cpp, http_helper_getstring.cpp, and tools_aahelper.cpp.
◆ isValid()
Call this function to determine if there have been any errors.
This will return true unless there have been any fatal errors.
See Error Handling.
- Returns
- True if no fatal error occured
- See also
- getLastError(), getLastErrorString(), clearAllErrors(), getErrorHandler()
- Examples
- common_error.cpp, config_enzymes.cpp, config_fragrules.cpp, config_license.cpp, config_mascotdat.cpp, config_masses.cpp, config_modfile.cpp, config_procs.cpp, config_quantitation.cpp, config_taxonomy.cpp, http_helper_getstring.cpp, peptide_list.cpp, repeat_search.cpp, resfile_error.cpp, resfile_info.cpp, resfile_input.cpp, resfile_params.cpp, resfile_summary.cpp, and tools_aahelper.cpp.
◆ setDataWithMissing()
Set the missing value array
- Parameters
-
dataWithMissingIn | The array of missing values to be imputed |
The documentation for this class was generated from the following files: