#include <bwi_tools/common/Util.h>
#include <fstream>
#include <cmath>
#include <cassert>
#include <stdlib.h>
#include <limits>
Go to the source code of this file.
Classes |
struct | ReplaceMap |
Functions |
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) |
bool | readJson (const std::string &filename, Json::Value &value) |
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) |
double | toc (int id) |
void | toc (double &counter, int id) |
void | vectorMax (const std::vector< float > &arr, float &maxVal, unsigned int &maxInd) |
unsigned int | vectorMaxInd (const std::vector< float > &arr) |
Variables |
std::map< int, double > | TIME_MAP |
Function Documentation
std::string indent |
( |
unsigned int |
indentation | ) |
|
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 |
|
) |
| |
void vectorMax |
( |
const std::vector< float > & |
arr, |
|
|
float & |
maxVal, |
|
|
unsigned int & |
maxInd |
|
) |
| |
unsigned int vectorMaxInd |
( |
const std::vector< float > & |
arr | ) |
|
Variable Documentation