STK++ 0.9.13
|
The DManager project propose classes and functions for managing the data. More...
Namespaces | |
namespace | STK::Import |
The import namespace contains the constants and global functions used in the DManager project when importing data in STK containers. | |
Classes | |
class | STK::KernelHandler |
implementation of the DataHandlerBase class for kernel mixture models. More... | |
class | STK::CellBase< Type > |
template Base class for the Cell in a list . More... | |
class | STK::CellVe< Type > |
template class for the Vertical Cell of a Vertical List. More... | |
class | STK::CellHo< Type > |
template class for the Horizontal Cell of a Horizontal List. More... | |
class | STK::Cell2D< Type > |
template class for the 2 Dimensional Cells. More... | |
class | STK::CvHandler |
CvHanler is an utility function for building the submatrix/subvectors needed when using k-folds cross-validation. More... | |
class | STK::DataFrame |
DataFrame is a List of Variable with the same number of rows. More... | |
class | STK::DataHandler |
implementation of the DataHandlerBase class using ReadWriteCsv and Array2D. More... | |
class | STK::DataHandlerBase< Derived > |
A class derived from a DataHandlerBase allows to store various data sets identified by an idData and an idModel. More... | |
class | STK::ExportToCsv |
Export data to a Csv. More... | |
class | STK::IDataBridge |
Interface class wrapping a data set. More... | |
class | STK::IDataHandler |
A DataHandler class allow to store various data set identified with an idData (a string). More... | |
class | STK::ImportFromCsv |
import data from a Csv File in a DataFrame. More... | |
class | STK::IPage |
A IPage is an interface base class for reading and/or writing a page of option in a file. More... | |
class | STK::IVariable |
IVariable is an Interface class for all Variables classes. More... | |
class | STK::List1D< Type_ > |
template One dimensional Horizontal List. More... | |
class | STK::Option |
the Option class allow to store the value of an option from a IPage. More... | |
class | STK::PartitionHandler |
CvHanler is an utility function for building the submatrix/subvectors needed when creating learning and test data sets. More... | |
class | STK::TReadWriteCsv< Type > |
the TReadWriteCsv class : allow to write and/or to read a csv file. More... | |
class | STK::ReadWritePages |
The ReadWritePages class allow to handle a file of option containing pages. More... | |
class | STK::Variable< Type_ > |
Variable is an implementation of the Base class IVariable using The Array1D class for storing the data. More... | |
Enumerations | |
enum | STK::DManager::TypeDataFile { STK::DManager::unknown_ =0 , STK::DManager::csv_ } |
type of the data file we handle. More... | |
enum | STK::Import::TypeImport { STK::Import::unknown_ =0 , STK::Import::numeric_ , STK::Import::only_numeric_ , STK::Import::string_ , STK::Import::directed_ , STK::Import::intelligent_ } |
define the type of import we want to perform. More... | |
enum | STK::Option::TypeOption { STK::Option::unknown_ =0 , STK::Option::string_ , STK::Option::real_ , STK::Option::integer_ , STK::Option::range_ , STK::Option::lstring_ , STK::Option::lreal_ , STK::Option::linteger_ , STK::Option::lrange_ , STK::Option::page_ } |
A TypeOption is the kind of options that can read or write a program in a file. More... | |
enum | STK::Csv::readflags { STK::Csv::RW_APPEND_DATA = 0x00000004 , STK::Csv::RW_REPLACE_DATA = 0x00000008 } |
TODO: These flags determine the behavior of the reading methods. More... | |
Functions | |
TypeDataFile | STK::DManager::stringToTypeDataFile (String const &type) |
convert a String to a TypeDataFile. | |
String | STK::DManager::TypeDataFileToString (TypeDataFile const &type) |
convert a TypeDataFile to a String. | |
bool | STK::DManager::checkStringToBoolean (String const &str) |
check if a string represent a boolean. | |
bool | STK::DManager::StringToBoolean (String const &str) |
convert a string to a boolean. | |
void | STK::DManager::removeCharBeforeAndAfter (String &str, Char c) |
remove all occurrences of the char c at the beginning and the end of the string str . | |
istream & | STK::DManager::getField (istream &is, String &value, Char delimiter) |
Get the current field from the input stream. | |
template<class TYPE > | |
void | STK::DManager::readList (String const &strBuffer, std::list< TYPE > &lst, Char sep=CHAR_SEP) |
Read a list of value of type TYPE stored in a line. | |
template<class TYPE > | |
void | STK::DManager::writeList (ostream &os, std::list< TYPE > const &lst, Char sep=CHAR_SEP) |
Write a list of value of type TYPE stored in a line. | |
int | STK::DManager::nbEndOfLine (istream &is) |
template<class Vector > | |
void | STK::heapSort (Vector &T) |
Sort the container T in ascending order. | |
template<class Vector > | |
void | STK::heapSort (Vector const &T, Vector &Tsort) |
Sort the container T in ascending order and return the result in the container Tsort. | |
template<class Vector , class VectorInt > | |
void | STK::heapSort (VectorInt &I, Vector const &T) |
Sort the container T in ascending order using index array. | |
template<class Vector , class VectorInt > | |
void | STK::applySort1D (Vector &T, VectorInt const &I) |
Apply a sorting index array to the 1D container T. | |
template<class Array , class VectorInt > | |
void | STK::applySort2D (Array &T, VectorInt const &I) |
Apply a sorting index array to the 2D container T row by row. | |
TypeImport | STK::Import::stringToTypeImport (String const &type) |
Convert a String to a TypeImport. | |
The DManager project propose classes and functions for managing the data.
The DManager project contains all the class related to data management. It provides
TODO: These flags determine the behavior of the reading methods.
Enumerator | |
---|---|
RW_APPEND_DATA | |
RW_REPLACE_DATA |
Definition at line 87 of file STK_ReadWriteCsv.h.
type of the data file we handle.
Enumerator | |
---|---|
unknown_ | unknown reduction |
csv_ |
Definition at line 82 of file STK_DManager_Util.h.
define the type of import we want to perform.
Definition at line 51 of file STK_Import_Util.h.
A TypeOption
is the kind of options that can read or write a program in a file.
It can be:
Definition at line 71 of file STK_Option.h.
Apply a sorting index array to the 1D container T.
I | the index array sorting T |
T | the container to sort |
Definition at line 287 of file STK_HeapSort.h.
References STK::applySort1D(), STK::IArray2D< Derived >::move(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_2ARG.
Referenced by STK::applySort1D(), STK::applySort2D(), and STK::Stat::Univariate< TContainer1D, Real >::compOrderStatistics().
Apply a sorting index array to the 2D container T row by row.
I | the index array sorting T |
T | the container to sort |
Definition at line 306 of file STK_HeapSort.h.
References STK::applySort1D(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_2ARG.
check if a string represent a boolean.
A String is a boolean if it is written "TRUE" or "FALSE". There is no need to use upper case.
str | the string to check |
true
if the String i a boolean, false
otherwise. Definition at line 78 of file STK_DManager_Util.cpp.
References _T, and STK::toUpperString().
Get the current field from the input stream.
A field is between the current position and a delimiter or an end of line in the stream. All blank spaces and tabulations before and after the field are removed.
is | the stream to treat |
value | the value of the field |
delimiter | the delimiter of the current field |
Definition at line 124 of file STK_DManager_Util.cpp.
References STK::DManager::removeCharBeforeAndAfter().
Referenced by STK::TReadWriteCsv< Type >::read(), STK::DManager::readList(), and STK::TReadWriteCsv< Type >::readNames().
Sort the container T in ascending order.
T | the container to sort |
Definition at line 50 of file STK_HeapSort.h.
References _T, and STK_STATIC_ASSERT_ONE_DIMENSION_ONLY.
Referenced by STK::Stat::Univariate< TContainer1D, Real >::compOrderStatistics().
Sort the container T in ascending order and return the result in the container Tsort.
T | the container to sort |
Tsort | the container with the result |
Definition at line 122 of file STK_HeapSort.h.
References _T, and STK_STATIC_ASSERT_ONE_DIMENSION_ONLY.
Sort the container T in ascending order using index array.
T is not modified, I contain the indices of the elements of T in ascending order.
I | the index array sorting T |
T | the container to sort |
Definition at line 197 of file STK_HeapSort.h.
References STK_STATIC_ASSERT_ONE_DIMENSION_ONLY.
is | the stream to parse. |
Definition at line 136 of file STK_DManager_Util.cpp.
Referenced by STK::TReadWriteCsv< Type >::initRead().
void STK::DManager::readList | ( | String const & | strBuffer, |
std::list< TYPE > & | lst, | ||
Char | sep = CHAR_SEP |
||
) |
Read a list of value of type TYPE
stored in a line.
strBuffer | the string with the list of value |
lst | the resulting list |
sep | the separator character |
Definition at line 153 of file STK_DManager_Util.h.
References STK::DManager::getField(), and STK::stringToType().
Referenced by STK::Option::setValue().
remove all occurrences of the char c
at the beginning and the end of the string str
.
str | the string to treat |
c | the character to remove before and after |
Definition at line 108 of file STK_DManager_Util.cpp.
Referenced by STK::IPage::findKeyword(), STK::DManager::getField(), STK::IPage::processLine(), STK::IPage::read(), and STK::TReadWriteCsv< Type >::readCurrentLine().
convert a string to a boolean.
A String is a boolean if it is written "TRUE" or "FALSE". There is no need to use upper case.
str | the string to convert |
true
if the String is "TRUE, false
otherwise. Definition at line 96 of file STK_DManager_Util.cpp.
References _T, and STK::toUpperString().
TypeDataFile STK::DManager::stringToTypeDataFile | ( | String const & | type | ) |
convert a String to a TypeDataFile.
type | the String we want to convert |
type
. if the string does not match any known name, the unknown_
type is returned. Definition at line 52 of file STK_DManager_Util.cpp.
References _T, STK::DManager::csv_, STK::toUpperString(), and STK::DManager::unknown_.
TypeImport STK::Import::stringToTypeImport | ( | String const & | type | ) |
Convert a String to a TypeImport.
type | the String we want to convert |
type
. if the string does not match any known name, the unknown_
type is returned. Definition at line 50 of file STK_Import_Util.cpp.
References _T, STK::Import::directed_, STK::Import::intelligent_, STK::Import::numeric_, STK::Import::only_numeric_, STK::Import::string_, STK::toUpperString(), and STK::Import::unknown_.
String STK::DManager::TypeDataFileToString | ( | TypeDataFile const & | type | ) |
convert a TypeDataFile to a String.
type | the type of data file we want to convert |
Definition at line 63 of file STK_DManager_Util.cpp.
References _T, and STK::DManager::csv_.
Write a list of value of type TYPE
stored in a line.
os | the output stream |
lst | the list to write |
sep | the separator character |
Definition at line 183 of file STK_DManager_Util.h.
Referenced by STK::Option::write().