#include <FeatureArray.h>
Public Member Functions | |
| FeatureArray () | |
| ~FeatureArray () | |
| void | clear () |
| int | getIndex () const |
| void | setIndex (const int 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, const SparseVector &sparseWeights, std::size_t n) |
| void | loadbin (std::istream *is, std::size_t n) |
| void | load (std::istream *is, const SparseVector &sparseWeights) |
| bool | check_consistency () const |
Definition at line 25 of file FeatureArray.h.
| MosesTuning::FeatureArray::FeatureArray | ( | ) |
Definition at line 21 of file FeatureArray.cpp.
| MosesTuning::FeatureArray::~FeatureArray | ( | ) |
Definition at line 24 of file FeatureArray.cpp.
| void MosesTuning::FeatureArray::add | ( | FeatureStats & | e | ) | [inline] |
Definition at line 58 of file FeatureArray.h.
Referenced by MosesTuning::FeatureData::add(), and merge().

| bool MosesTuning::FeatureArray::check_consistency | ( | ) | const |
Definition at line 149 of file FeatureArray.cpp.
References NumberOfFeatures().

| void MosesTuning::FeatureArray::clear | ( | ) | [inline] |
Definition at line 39 of file FeatureArray.h.
| void MosesTuning::FeatureArray::Features | ( | const std::string & | f | ) | [inline] |
Definition at line 88 of file FeatureArray.h.
| std::string MosesTuning::FeatureArray::Features | ( | ) | const [inline] |
Definition at line 85 of file FeatureArray.h.
Referenced by MosesTuning::FeatureData::add().

| const FeatureStats& MosesTuning::FeatureArray::get | ( | std::size_t | i | ) | const [inline] |
Definition at line 54 of file FeatureArray.h.
| FeatureStats& MosesTuning::FeatureArray::get | ( | std::size_t | i | ) | [inline] |
Definition at line 51 of file FeatureArray.h.
Referenced by merge(), and MosesTuning::Data::removeDuplicates().

| int MosesTuning::FeatureArray::getIndex | ( | ) | const [inline] |
Definition at line 44 of file FeatureArray.h.
Referenced by MosesTuning::FeatureData::add().

| void MosesTuning::FeatureArray::load | ( | std::istream * | is, | |
| const SparseVector & | sparseWeights | |||
| ) |
| void MosesTuning::FeatureArray::loadbin | ( | std::istream * | is, | |
| std::size_t | n | |||
| ) |
| void MosesTuning::FeatureArray::loadtxt | ( | std::istream * | is, | |
| const SparseVector & | sparseWeights, | |||
| std::size_t | n | |||
| ) |
| void MosesTuning::FeatureArray::merge | ( | FeatureArray & | e | ) |
Definition at line 142 of file FeatureArray.cpp.
References add(), get(), and size().

| void MosesTuning::FeatureArray::NumberOfFeatures | ( | std::size_t | v | ) | [inline] |
Definition at line 81 of file FeatureArray.h.
| std::size_t MosesTuning::FeatureArray::NumberOfFeatures | ( | ) | const [inline] |
Definition at line 78 of file FeatureArray.h.
Referenced by MosesTuning::FeatureData::add(), and check_consistency().

| void MosesTuning::FeatureArray::resize | ( | std::size_t | new_size | ) | [inline] |
Definition at line 67 of file FeatureArray.h.
Referenced by MosesTuning::Data::removeDuplicates().

| void MosesTuning::FeatureArray::save | ( | bool | bin = false |
) |
Definition at line 70 of file FeatureArray.cpp.
References save().

| void MosesTuning::FeatureArray::save | ( | const std::string & | file, | |
| bool | bin = false | |||
| ) |
| void MosesTuning::FeatureArray::save | ( | std::ostream * | os, | |
| bool | bin = false | |||
| ) |
| void MosesTuning::FeatureArray::savebin | ( | std::ostream * | os | ) |
| void MosesTuning::FeatureArray::savetxt | ( | std::ostream * | os | ) |
| void MosesTuning::FeatureArray::setIndex | ( | const int | value | ) | [inline] |
Definition at line 47 of file FeatureArray.h.
Referenced by MosesTuning::FeatureData::add().

| std::size_t MosesTuning::FeatureArray::size | ( | ) | const [inline] |
Definition at line 74 of file FeatureArray.h.
Referenced by merge(), and MosesTuning::Data::removeDuplicates().

| void MosesTuning::FeatureArray::swap | ( | std::size_t | i, | |
| std::size_t | j | |||
| ) | [inline] |
Definition at line 63 of file FeatureArray.h.
Referenced by MosesTuning::Data::removeDuplicates().

1.5.9