SpikeStream Library
0.2
|
#include <Util.h>
Public Member Functions | |
bool | bitsEqual (unsigned char *byteArr, QString bitPattStr, int output) |
Static Public Member Functions | |
static void | addTraining (WeightlessNeuron &neuron, QString trainingPattern, int output) |
static void | fillByteArray (unsigned char *&byteArr, int &arrLen, QString byteStr) |
static void | fillSelectionArray (bool *array, int arraySize, int selectionSize) |
static bool | getBool (const QString &str) |
static bool | getBoolParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static float | getFloat (const QString &str) |
static int | getInt (const QString &str) |
static unsigned int | getUInt (const QString &str) |
static QList< unsigned int > | getUIntList (const QString &str) |
static double | getDouble (const QString &str) |
static double | getDoubleParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static double | getPositiveDoubleParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static float | getFloatParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static int | getIntParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static unsigned | getUIntParameter (const QString ¶mName, QHash< QString, double > ¶mMap) |
static int | getRandom (int min, int max) |
static double | getRandomDouble (double min, double max) |
static float | getRandomFloat (float min, float max) |
static unsigned | getRandomUInt (unsigned min, unsigned max) |
static QString | getRootDirectory () |
static bool | isNumber (const QString &str) |
static mpf_class | factorial (unsigned int num) |
static float | min (float n1, float n2, float n3) |
static void | printBinary (uint64_t number) |
static void | printByteArray (byte *byteArr, int arrLen) |
static void | printByteArray (const QByteArray &byteArr) |
static void | printBoolArray (bool arr[], int arrLen) |
static void | printParameterMap (const QHash< QString, double > ¶mMap) |
static double | rDouble (double num, int numPlaces) |
static int | rInt (double num) |
static unsigned int | rUInt (double num) |
static void | safeCStringCopy (char target[], const char source[], int targetSize) |
static void | seedRandom (int seed=0) |
static void | setGeneralization (QHash< unsigned int, WeightlessNeuron * > &weiNeurMap, double gen) |
static double | toPositive (double num) |
static float | toPositive (float num) |
static int | toPositive (int num) |
void Util::addTraining | ( | WeightlessNeuron & | neuron, |
QString | trainingPattern, | ||
int | output | ||
) | [static] |
bool Util::bitsEqual | ( | unsigned char * | byteArr, |
QString | bitPattStr, | ||
int | output | ||
) |
mpf_class Util::factorial | ( | unsigned int | num | ) | [static] |
void Util::fillByteArray | ( | unsigned char *& | byteArr, |
int & | arrLen, | ||
QString | byteStr | ||
) | [static] |
void Util::fillSelectionArray | ( | bool * | selectionArray, |
int | arraySize, | ||
int | selectionSize | ||
) | [static] |
bool Util::getBool | ( | const QString & | str | ) | [static] |
bool Util::getBoolParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
double Util::getDouble | ( | const QString & | str | ) | [static] |
double Util::getDoubleParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
float Util::getFloat | ( | const QString & | str | ) | [static] |
float Util::getFloatParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
int Util::getInt | ( | const QString & | str | ) | [static] |
int Util::getIntParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
double Util::getPositiveDoubleParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
int Util::getRandom | ( | int | min, |
int | max | ||
) | [static] |
double Util::getRandomDouble | ( | double | min, |
double | max | ||
) | [static] |
float Util::getRandomFloat | ( | float | min, |
float | max | ||
) | [static] |
unsigned int Util::getRandomUInt | ( | unsigned | min, |
unsigned | max | ||
) | [static] |
QString Util::getRootDirectory | ( | ) | [static] |
unsigned int Util::getUInt | ( | const QString & | str | ) | [static] |
QList< unsigned int > Util::getUIntList | ( | const QString & | str | ) | [static] |
unsigned Util::getUIntParameter | ( | const QString & | paramName, |
QHash< QString, double > & | paramMap | ||
) | [static] |
bool Util::isNumber | ( | const QString & | str | ) | [static] |
float Util::min | ( | float | n1, |
float | n2, | ||
float | n3 | ||
) | [static] |
void Util::printBinary | ( | uint64_t | number | ) | [static] |
void Util::printBoolArray | ( | bool | arr[], |
int | arrLen | ||
) | [static] |
void Util::printByteArray | ( | byte * | byteArr, |
int | arrLen | ||
) | [static] |
void Util::printByteArray | ( | const QByteArray & | byteArr | ) | [static] |
void Util::printParameterMap | ( | const QHash< QString, double > & | paramMap | ) | [static] |
double Util::rDouble | ( | double | num, |
int | numPlaces | ||
) | [static] |
int Util::rInt | ( | double | num | ) | [static] |
unsigned int Util::rUInt | ( | double | num | ) | [static] |
void Util::safeCStringCopy | ( | char | target[], |
const char | source[], | ||
int | targetSize | ||
) | [static] |
void Util::seedRandom | ( | int | seed = 0 | ) | [static] |
void Util::setGeneralization | ( | QHash< unsigned int, WeightlessNeuron * > & | weiNeurMap, |
double | gen | ||
) | [static] |
double Util::toPositive | ( | double | num | ) | [static] |
float Util::toPositive | ( | float | num | ) | [static] |
int Util::toPositive | ( | int | num | ) | [static] |