#include <bwi_tools/json/json.h>
#include <boost/function.hpp>
#include <string>
#include <vector>
#include <ostream>
#include <map>
#include <sys/time.h>
Go to the source code of this file.
Classes |
class | Timer |
Defines |
#define | NULL 0 |
Functions |
double | getTime () |
std::string | indent (unsigned int indentation) |
void | jsonReplaceStrings (Json::Value &value, const std::map< std::string, std::string > &replacementMap) |
void | jsonReplaceStrings (Json::Value &value, boost::function< void(Json::Value &)> replace) |
template<class T > |
T | max (const T &x1, const T &x2) |
template<class T > |
T | min (const T &x1, const T &x2) |
template<class T > |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &vect) |
bool | readJson (const std::string &filename, Json::Value &value) |
template<class T > |
int | sgn (const T &x) |
float | softmax (float x1, float x2, float factor) |
void | softmax (const std::vector< unsigned int > &vals, float factor, std::vector< float > &probs) |
std::string | tempFilename () |
void | tic (int id=0) |
double | toc (int id=0) |
void | toc (double &counter, int id=0) |
void | vectorMax (const std::vector< float > &arr, float &maxVal, unsigned int &maxInd) |
unsigned int | vectorMaxInd (const std::vector< float > &arr) |
Define Documentation
Function Documentation
std::string indent |
( |
unsigned int |
indentation | ) |
|
template<class T >
T max |
( |
const T & |
x1, |
|
|
const T & |
x2 |
|
) |
| [inline] |
template<class T >
T min |
( |
const T & |
x1, |
|
|
const T & |
x2 |
|
) |
| [inline] |
template<class T >
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const std::vector< T > & |
vect |
|
) |
| |
template<class T >
int sgn |
( |
const T & |
x | ) |
[inline] |
float softmax |
( |
float |
x1, |
|
|
float |
x2, |
|
|
float |
factor |
|
) |
| |
void softmax |
( |
const std::vector< unsigned int > & |
vals, |
|
|
float |
factor, |
|
|
std::vector< float > & |
probs |
|
) |
| |
void toc |
( |
double & |
counter, |
|
|
int |
id = 0 |
|
) |
| |
void vectorMax |
( |
const std::vector< float > & |
arr, |
|
|
float & |
maxVal, |
|
|
unsigned int & |
maxInd |
|
) |
| |
unsigned int vectorMaxInd |
( |
const std::vector< float > & |
arr | ) |
|