Public namespace. More...
Namespaces | |
| kernel | |
| Namespace containing kernel definitions. | |
| la | |
| Namespace containing linear algebra functions (and some other functions). | |
Typedefs | |
| typedef double | coord_t |
| Type for point coordinates. | |
| typedef std::pair< coord_t, coord_t > | coord_pair |
| Pair of coord_t. | |
| typedef double | appear_t |
| Type for appearance-related values (e.g., color) | |
| typedef double | weight_t |
| Type for particle weights. | |
| typedef unsigned int | bitfield_t |
| Type for bitfield. | |
| typedef unsigned int | id_t |
| Type for identifier label. | |
| typedef nuklei_wmf::Vector2< coord_t > | Vector2 |
| typedef nuklei_wmf::Vector3< coord_t > | Vector3 |
| typedef nuklei_wmf::GVector< coord_t > | GVector |
| typedef nuklei_wmf::Quaternion< coord_t > | Quaternion |
| typedef nuklei_wmf::Matrix3< coord_t > | Matrix3 |
| typedef nuklei_wmf::GMatrix< coord_t > | GMatrix |
| typedef nuklei_wmf::Plane3< coord_t > | Plane3 |
| typedef std::vector< std::pair< Vector3, std::vector< int > > > | viewcache_t |
| typedef KernelLogisticRegressor | KernelLogisticRegression |
| Obsolete. See KernelLogisticRegressor instead. | |
Functions | |
| template<typename T > | |
| static T | initConst (const char *envVar, T def) |
| defConst (bool, KDTREE_DENSITY_EVAL, true) | |
| defConst (bool, KDTREE_NANOFLANN, true) | |
| defConst (unsigned int, KDE_KTH_NEAREST_NEIGHBOR, 8) | |
| defConst (appear_t, HSV_METRIC_VALUE_WEIGHT,.6) | |
| defConst (std::string, SERIALIZATION_DEFAULT_OUTPUT_TYPE, "serial") | |
| defConst (std::string, SERIALIZATION_DEFAULT_BOOST_ARCHIVE, "bbinc") | |
| defConst (unsigned, IMAGE_PROJECTION_RADIUS, 3) | |
| defConst (std::string, PARALLELIZATION, "openmp") | |
| defConst (bool, ENABLE_CONSOLE_BACKSPACE, true) | |
| defConst (unsigned, LOG_LEVEL, 0) | |
| bool | hasOpenMP () |
| std::ostream & | operator<< (std::ostream &out, const GMatrix &m) |
| std::istream & | operator>> (std::istream &in, GMatrix &m) |
| double | confluentHypergeometric1F1 (const double a, const double b, const double x) |
| double | besselI1 (const double x) |
| bool | rfe (const double a, const double b, double tol) |
| Color * | new_clone (const Color &d) |
| template<class T > | |
| T const & | as_const (T const &t) |
| Provides a const reference to an object. | |
| template<typename T > | |
| std::string | stringify (const T &x, int precision=-1, int width=0) |
| Converts an object to a std::string using operator<<. | |
| std::istream & | operator>> (std::istream &in, Vector3 &l) |
| std::istream & | operator>> (std::istream &in, Quaternion &q) |
| std::ostream & | operator<< (std::ostream &out, const Quaternion &q) |
| std::ostream & | operator<< (std::ostream &out, const Matrix3 &m) |
| std::istream & | operator>> (std::istream &in, Matrix3 &m) |
| template<typename ForwardIterator > | |
| std::string | stringifyRange (ForwardIterator first, ForwardIterator last, int precision=-1, int width=0) |
| Converts a range to a std::string using operator<< on elements. | |
| template<typename T > | |
| T | numify (const std::string &s, bool failIfLeftoverChars=true) |
| Converts a string to an object using operator>>. | |
| std::string & | cleanLine (std::string &line) |
| void | copy_file (const std::string &input, const std::string &output) |
| Descriptor * | new_clone (const Descriptor &d) |
| template<class T > | |
| std::ostream & | operator<< (Indenter &idt, const T &t) |
| coord_t | multivariateGaussian (const GVector &x, const GVector &m, const GMatrix &cov, const weight_t w=1) |
| std::istream & | operator>> (std::istream &in, const Match &match) |
| template<typename T > | |
| T | ACos (T fValue) |
| template<typename T > | |
| T | FastACos (T fValue) |
| template<typename T > | |
| T | ASin (T fValue) |
| template<typename T > | |
| T | FastNegExp (T fValue) |
| coord_t | trivariateGaussian (const Vector3 &x, const Vector3 &m, const Matrix3 &cov, const weight_t w=1) |
| coord_t | trivariateGaussianDistance (const Vector3 &x, const Vector3 &m, const Matrix3 &cov, const weight_t w=1) |
| bool | afe (const double a, const double b, double tol=1e-6) |
| template<typename T > | |
| T | angularDistance (T a, T b) |
| template<class T > | |
| std::string | catTypeNames () |
| Cats all type names into a string. More... | |
| template<class T > | |
| std::vector< std::string > | listTypeNames () |
| Fills a std::vector with all type names. | |
| template<class T > | |
| std::string | defaultTypeName () |
| Returns the default type name. | |
| template<class T > | |
| T::Type | defaultType () |
| Returns the default type. | |
| template<class T > | |
| std::string | nameFromType (int t) |
Returns the name of type t. | |
| template<class T > | |
| T::Type | typeFromName (std::string s) |
Returns the type whose name is s. | |
| static int | nuklei_thread_num () |
| static int | nuklei_max_threads () |
| BoxFace | make_boxface (const int a, const int b, const int c, const int d) |
| template void | Serial::readObject< kernel::se3 > (kernel::se3 &object, const std::string &filename, const std::string &typeName) |
| template void | Serial::writeObject< kernel::se3 > (const kernel::se3 &object, const std::string &filename, const std::string &typeName, const int precision) |
| std::istream & | operator>> (std::istream &in, KernelCollection &v) |
| std::ostream & | operator<< (std::ostream &out, const FlexiblePoint &p) |
| template<class Kernel > | |
| Kernel::group_t::element_t | importance_sampling_uniform_proposal (typename Kernel::group_t::element_t mean, coord_t h) |
| template<class Kernel > | |
| Kernel::group_t::element_t | importance_sampling_similar_proposal (typename Kernel::group_t::element_t mean, coord_t h_target, coord_t h_proposal) |
| std::ostream & | operator<< (std::ostream &out, const ObservationReader::Counter &c) |
| void | readObservations (ObservationReader &r, KernelCollection &kc) |
Reads the data available from the reader r and stores it into kc. | |
| void | readObservations (const std::string &s, KernelCollection &kc) |
Reads the file s (with automatic type detection) and stores the read data into kc. | |
| void | readObservations (const std::string &s, KernelCollection &kc, Observation::Type &t) |
Reads the file s (with automatic type detection) and stores the read data into kc. More... | |
| void | readObservationsWithSpecificFormat (const std::string &s, KernelCollection &kc, const Observation::Type &t) |
Reads the file s (no automatic type detection) and stores the read data into kc. More... | |
| kernel::base::ptr | readSingleObservation (const std::string &s) |
Reads a single observation from file s (with automatic type detection), and returns it. More... | |
| kernel::base::ptr | readSingleObservation (const std::string &s, Observation::Type &t) |
Reads a single observation from file s (with automatic type detection), and returns it. More... | |
| kernel::base::ptr | readSingleObservationWithSpecificFormat (const std::string &s, const Observation::Type &t) |
Reads a single observation from file s (no automatic type detection), and returns it. More... | |
| void | writeObservations (ObservationWriter &w, const KernelCollection &kc) |
Writes the content of kc using the provided writer w. | |
| void | writeObservations (const std::string &s, const KernelCollection &kc, const Observation::Type &t=Observation::NUKLEI) |
Writes the content of kc to file s, using file format t. | |
| void | writeSingleObservation (const std::string &s, const kernel::base &k, const Observation::Type &t=Observation::NUKLEI) |
Writes k to file s, using file format t. | |
| static tt::XMLElement * | append (tt::XMLElement *parent, const std::string &value) |
Variables | |
| const std::string | INFOSTRING |
| const coord_t | FLOATTOL = 1e-12 |
| const int | PRECISION = std::numeric_limits<double>::digits10 + 2 |
| const int | NICEINC = std::numeric_limits<int>::max() |
| bool | LAST_OUTPUT_LINE_IS_PROGRESS = false |
| const bool | INTERACTIVE_SHELL |
| const bool | KDTREE_DENSITY_EVAL |
| const bool | KDTREE_NANOFLANN |
| const unsigned int | KDE_KTH_NEAREST_NEIGHBOR |
| const appear_t | HSV_METRIC_VALUE_WEIGHT |
| const std::string | SERIALIZATION_DEFAULT_OUTPUT_TYPE |
| const std::string | SERIALIZATION_DEFAULT_BOOST_ARCHIVE |
| const unsigned | IMAGE_PROJECTION_RADIUS |
| const std::string | PARALLELIZATION |
| const bool | ENABLE_CONSOLE_BACKSPACE |
| const unsigned | LOG_LEVEL |
| static std::vector< boost::mt19937 > * | bRandGens |
| static std::vector< gsl_rng * > * | gRandGens |
| static std::vector< boost::shared_ptr< boost::mutex > > * | mutexes |
| const bool | WEIGHTED_SUM_EVIDENCE_EVAL = false |
| const double | WHITE_NOISE_POWER = 1e-4 |
Public namespace.
| void nuklei::readObservations | ( | const std::string & | s, |
| KernelCollection & | kc, | ||
| Observation::Type & | t | ||
| ) |
Reads the file s (with automatic type detection) and stores the read data into kc.
t is set to the format of the file s.
Definition at line 408 of file ObservationIO.cpp.
| void nuklei::readObservationsWithSpecificFormat | ( | const std::string & | s, |
| KernelCollection & | kc, | ||
| const Observation::Type & | t | ||
| ) |
Reads the file s (no automatic type detection) and stores the read data into kc.
t is the format in which the data is stored.
Definition at line 417 of file ObservationIO.cpp.
Referenced by readSingleObservationWithSpecificFormat().
| kernel::base::ptr nuklei::readSingleObservation | ( | const std::string & | s | ) |
Reads a single observation from file s (with automatic type detection), and returns it.
This method check that the file s contains a single observation. If it is not the case, an exception is thrown.
Definition at line 427 of file ObservationIO.cpp.
| kernel::base::ptr nuklei::readSingleObservation | ( | const std::string & | s, |
| Observation::Type & | t | ||
| ) |
Reads a single observation from file s (with automatic type detection), and returns it.
t is set to the format of the file s.
This method check that the file s contains a single observation. If it is not the case, an exception is thrown.
Definition at line 433 of file ObservationIO.cpp.
References nuklei::KernelCollection::front(), NUKLEI_THROW, and nuklei::KernelCollection::size().
| kernel::base::ptr nuklei::readSingleObservationWithSpecificFormat | ( | const std::string & | s, |
| const Observation::Type & | t | ||
| ) |
Reads a single observation from file s (no automatic type detection), and returns it.
t is the format in which the data is stored.
This method check that the file s contains a single observation. If it is not the case, an exception is thrown.
Definition at line 444 of file ObservationIO.cpp.
References nuklei::KernelCollection::front(), NUKLEI_THROW, readObservationsWithSpecificFormat(), and nuklei::KernelCollection::size().
| const std::string nuklei::INFOSTRING |
Definition at line 18 of file Definitions.cpp.
| const bool nuklei::INTERACTIVE_SHELL |
Definition at line 82 of file Definitions.cpp.