celeste/Utilities.cpp File Reference
#include <math.h>
#include <stdlib.h>
#include "Utilities.h"
Include dependency graph for Utilities.cpp:
|
Classes |
| struct | tmp |
Functions |
| void | Permute (int *array, size_t size) |
| int | cmp (const void *s1, const void *s2) |
| float | Heavyside (float a) |
| float | Sigmoid (float act) |
| float | Sigmoid (float beta, float a_pot) |
| float | Sigmoid (float beta, float a_pot, float thresh) |
| int ** | CreateMatrix (int val, int row, int col) |
| void | ResetMatrix (int **matrix, int val, int row, int col) |
| void | DisposeMatrix (int **matrix, int row) |
| float ** | CreateMatrix (float val, int row, int col) |
| void | ResetMatrix (float **matrix, float val, int row, int col) |
| void | DisposeMatrix (float **matrix, int row) |
| float | ReturnDistance (float *pat1, float *pat2, int size) |
| void | SkipComments (ifstream *infile) |
| void | FileCreateError (char *filename) |
| void | FileOpenError (char *filename) |
| void | GetStreamDefaults (void) |
| void | AdjustStream (ostream &os, int precision, int width, int pos, bool trailers) |
| void | SetStreamDefaults (ostream &os) |
| double | SafeAbs (double val1, double val2) |
| float | SafeAbs (float val1, float val2) |
| int | SafeAbs (int val1, int val2) |
| double | SafeAbs (double val) |
| float | SafeAbs (float val) |
| int | SafeAbs (int val) |
Variables |
| long | gPrecision |
| long | gWidth |
Function Documentation
| void AdjustStream |
( |
ostream & |
os, |
|
|
int |
precision, |
|
|
int |
width, |
|
|
int |
pos, |
|
|
bool |
trailers |
|
) |
|
|
| int cmp |
( |
const void * |
s1, |
|
|
const void * |
s2 |
|
) |
|
|
| float** CreateMatrix |
( |
float |
val, |
|
|
int |
row, |
|
|
int |
col |
|
) |
|
|
| int** CreateMatrix |
( |
int |
val, |
|
|
int |
row, |
|
|
int |
col |
|
) |
|
|
| void DisposeMatrix |
( |
float ** |
matrix, |
|
|
int |
row |
|
) |
|
|
| void DisposeMatrix |
( |
int ** |
matrix, |
|
|
int |
row |
|
) |
|
|
| void FileCreateError |
( |
char * |
filename |
) |
|
|
| void FileOpenError |
( |
char * |
filename |
) |
|
|
| void GetStreamDefaults |
( |
void |
|
) |
|
|
| float Heavyside |
( |
float |
a |
) |
|
|
| void Permute |
( |
int * |
array, |
|
|
size_t |
size |
|
) |
|
|
| void ResetMatrix |
( |
float ** |
matrix, |
|
|
float |
val, |
|
|
int |
row, |
|
|
int |
col |
|
) |
|
|
| void ResetMatrix |
( |
int ** |
matrix, |
|
|
int |
val, |
|
|
int |
row, |
|
|
int |
col |
|
) |
|
|
| float ReturnDistance |
( |
float * |
pat1, |
|
|
float * |
pat2, |
|
|
int |
size |
|
) |
|
|
| float SafeAbs |
( |
float |
val |
) |
|
|
| int SafeAbs |
( |
int |
val1, |
|
|
int |
val2 |
|
) |
|
|
| float SafeAbs |
( |
float |
val1, |
|
|
float |
val2 |
|
) |
|
|
| void SetStreamDefaults |
( |
ostream & |
os |
) |
|
|
| float Sigmoid |
( |
float |
beta, |
|
|
float |
a_pot, |
|
|
float |
thresh |
|
) |
|
|
| float Sigmoid |
( |
float |
beta, |
|
|
float |
a_pot |
|
) |
|
|
| float Sigmoid |
( |
float |
act |
) |
|
|
| void SkipComments |
( |
ifstream * |
infile |
) |
|
|
Variable Documentation