#include <FeatureArray.h>
Public Member Functions | |
FeatureArray () | |
~FeatureArray () | |
void | clear () |
bool | hasSparseFeatures () const |
std::string | getIndex () const |
void | setIndex (const std::string &value) |
FeatureStats & | get (std::size_t i) |
const FeatureStats & | get (std::size_t i) const |
void | add (FeatureStats &e) |
void | swap (std::size_t i, std::size_t j) |
void | resize (std::size_t new_size) |
void | merge (FeatureArray &e) |
std::size_t | size () const |
std::size_t | NumberOfFeatures () const |
void | NumberOfFeatures (std::size_t v) |
std::string | Features () const |
void | Features (const std::string &f) |
void | savetxt (std::ostream *os) |
void | savebin (std::ostream *os) |
void | save (std::ostream *os, bool bin=false) |
void | save (const std::string &file, bool bin=false) |
void | save (bool bin=false) |
void | loadtxt (std::istream *is, std::size_t n) |
void | loadbin (std::istream *is, std::size_t n) |
void | load (std::istream *is) |
void | load (const std::string &file) |
bool | check_consistency () const |
Definition at line 21 of file FeatureArray.h.
FeatureArray::FeatureArray | ( | ) |
Definition at line 17 of file FeatureArray.cpp.
FeatureArray::~FeatureArray | ( | ) |
Definition at line 20 of file FeatureArray.cpp.
void FeatureArray::add | ( | FeatureStats & | e | ) | [inline] |
Definition at line 46 of file FeatureArray.h.
Referenced by merge().
bool FeatureArray::check_consistency | ( | ) | const |
Definition at line 156 of file FeatureArray.cpp.
References NumberOfFeatures().
void FeatureArray::clear | ( | ) | [inline] |
Definition at line 36 of file FeatureArray.h.
void FeatureArray::Features | ( | const std::string & | f | ) | [inline] |
Definition at line 66 of file FeatureArray.h.
std::string FeatureArray::Features | ( | ) | const [inline] |
Definition at line 65 of file FeatureArray.h.
const FeatureStats& FeatureArray::get | ( | std::size_t | i | ) | const [inline] |
Definition at line 44 of file FeatureArray.h.
FeatureStats& FeatureArray::get | ( | std::size_t | i | ) | [inline] |
Definition at line 43 of file FeatureArray.h.
Referenced by merge(), and Data::removeDuplicates().
std::string FeatureArray::getIndex | ( | ) | const [inline] |
Definition at line 40 of file FeatureArray.h.
Referenced by FeatureData::add().
bool FeatureArray::hasSparseFeatures | ( | ) | const [inline] |
Definition at line 38 of file FeatureArray.h.
void FeatureArray::load | ( | const std::string & | file | ) |
void FeatureArray::load | ( | std::istream * | is | ) |
void FeatureArray::loadbin | ( | std::istream * | is, | |
std::size_t | n | |||
) |
void FeatureArray::loadtxt | ( | std::istream * | is, | |
std::size_t | n | |||
) |
void FeatureArray::merge | ( | FeatureArray & | e | ) |
Definition at line 149 of file FeatureArray.cpp.
References add(), get(), and size().
void FeatureArray::NumberOfFeatures | ( | std::size_t | v | ) | [inline] |
Definition at line 63 of file FeatureArray.h.
std::size_t FeatureArray::NumberOfFeatures | ( | ) | const [inline] |
Definition at line 62 of file FeatureArray.h.
Referenced by check_consistency().
void FeatureArray::resize | ( | std::size_t | new_size | ) | [inline] |
Definition at line 53 of file FeatureArray.h.
Referenced by Data::removeDuplicates().
void FeatureArray::save | ( | bool | bin = false |
) |
Definition at line 66 of file FeatureArray.cpp.
References save().
void FeatureArray::save | ( | const std::string & | file, | |
bool | bin = false | |||
) |
void FeatureArray::save | ( | std::ostream * | os, | |
bool | bin = false | |||
) |
void FeatureArray::savebin | ( | std::ostream * | os | ) |
void FeatureArray::savetxt | ( | std::ostream * | os | ) |
void FeatureArray::setIndex | ( | const std::string & | value | ) | [inline] |
Definition at line 41 of file FeatureArray.h.
std::size_t FeatureArray::size | ( | ) | const [inline] |
Definition at line 60 of file FeatureArray.h.
Referenced by merge(), and Data::removeDuplicates().
void FeatureArray::swap | ( | std::size_t | i, | |
std::size_t | j | |||
) | [inline] |
Definition at line 49 of file FeatureArray.h.
Referenced by Data::removeDuplicates().