A fuzzy logic C++ library
Public Member Functions | Private Member Functions | Private Attributes | Friends
slifis::DATASET_PROPERTIES Class Reference

#include <dataset_properties.hpp>

+ Collaboration diagram for slifis::DATASET_PROPERTIES:

List of all members.

Public Member Functions

void Print (FILE *f) const
double GetMinValue (size_t i) const
 Returns min. value of data set, index is NOT related to original column in file.
double GetMaxValue (size_t i) const
 Returns max. value of data set, index is NOT related to original column in file.

Private Member Functions

 DATASET_PROPERTIES ()
 DATASET_PROPERTIES (size_t NbInputs)
void P_SetDataSize (size_t NbInputs)
void P_ComputeProps (const DATA_SET &ds)
 Returns in vector v all the possible strings that attribute of index idx has.
size_t P_GetNbFields () const

Private Attributes

std::vector< double > _v_MinVal
std::vector< double > _v_MaxVal
std::vector< double > _v_MeanVal
std::vector< double > _v_StdDevVal
const DATA_SET_p_dataset

Friends

class DATA_SET

Constructor & Destructor Documentation

slifis::DATASET_PROPERTIES::DATASET_PROPERTIES ( size_t  NbInputs) [inline, private]

References P_SetDataSize().


Member Function Documentation

void slifis::DATASET_PROPERTIES::Print ( FILE *  f) const

References __IN__, __OUT__, and slifis::GetChar_FieldType().

Referenced by main().

Returns min. value of data set, index is NOT related to original column in file.

References __IN__, __OUT__, slifis::ERR_DATA_BAD_INDEX, and SLIFIS_ERROR_2.

Referenced by main(), and process_numeric().

Returns max. value of data set, index is NOT related to original column in file.

References __IN__, __OUT__, slifis::ERR_DATA_BAD_INDEX, and SLIFIS_ERROR_2.

Referenced by main(), and process_numeric().

void slifis::DATASET_PROPERTIES::P_SetDataSize ( size_t  NbInputs) [inline, private]

References _v_MaxVal, _v_MeanVal, _v_MinVal, and _v_StdDevVal.

Referenced by DATASET_PROPERTIES().

void slifis::DATASET_PROPERTIES::P_ComputeProps ( const DATA_SET ds) [private]

Returns in vector v all the possible strings that attribute of index idx has.

  • will silently return false if index idx is not a string attribute
  • The order of the strings will be the order in which they are found in the file Compute properties of data set (min-max, mean and stddev, but could be extended)

References __IN__, __OUT__, slifis::DT_NUMERIC, slifis::DATA_SET::GetDataPoint(), slifis::DATA_SET::GetFieldType(), slifis::DATA_SET::GetNbFields(), slifis::DATA_SET::GetNbPoints(), slifis::DATA_POINT::GetValue(), slifis::DATA_POINT::GetValue_f(), and SLIFIS_LOG.

size_t slifis::DATASET_PROPERTIES::P_GetNbFields ( ) const [inline, private]

References _v_MinVal.


Friends And Related Function Documentation

friend class DATA_SET [friend]

Member Data Documentation

std::vector<double> slifis::DATASET_PROPERTIES::_v_MinVal [private]

Referenced by P_GetNbFields(), and P_SetDataSize().

std::vector<double> slifis::DATASET_PROPERTIES::_v_MaxVal [private]

Referenced by P_SetDataSize().

std::vector<double> slifis::DATASET_PROPERTIES::_v_MeanVal [private]

Referenced by P_SetDataSize().

std::vector<double> slifis::DATASET_PROPERTIES::_v_StdDevVal [private]

Referenced by P_SetDataSize().