Utilities.cpp File Reference

#include <math.h>
#include <stdlib.h>
#include "Utilities.h"

Include dependency graph for Utilities.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  celeste

Classes

struct  celeste::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 celeste::AdjustStream ostream os,
int  precision,
int  width,
int  pos,
bool  trailers
 

Definition at line 220 of file Utilities.cpp.

int celeste::cmp const void *  s1,
const void *  s2
 

Definition at line 68 of file Utilities.cpp.

References celeste::tmp::r.

Referenced by celeste::Permute().

float ** celeste::CreateMatrix float  val,
int  row,
int  col
 

Definition at line 132 of file Utilities.cpp.

Referenced by celeste::createGrid(), celeste::getCelesteControlPoints(), main(), and celeste::prepareGaborImage().

int ** celeste::CreateMatrix int  val,
int  row,
int  col
 

Definition at line 103 of file Utilities.cpp.

void celeste::DisposeMatrix float **  matrix,
int  row
 

Definition at line 153 of file Utilities.cpp.

Referenced by celeste::getCelesteControlPoints(), and celeste::getCelesteMask().

void celeste::DisposeMatrix int **  matrix,
int  row
 

Definition at line 124 of file Utilities.cpp.

void celeste::FileCreateError char *  filename  ) 
 

Definition at line 193 of file Utilities.cpp.

References cerr.

void celeste::FileOpenError char *  filename  ) 
 

Definition at line 202 of file Utilities.cpp.

References cerr.

void celeste::GetStreamDefaults void   ) 
 

Definition at line 214 of file Utilities.cpp.

References cout, celeste::gPrecision, and celeste::gWidth.

float celeste::Heavyside float  a  ) 
 

Definition at line 77 of file Utilities.cpp.

void celeste::Permute int *  array,
size_t  size
 

Definition at line 48 of file Utilities.cpp.

References celeste::cmp(), celeste::tmp::p, and celeste::tmp::r.

void celeste::ResetMatrix float **  matrix,
float  val,
int  row,
int  col
 

Definition at line 145 of file Utilities.cpp.

void celeste::ResetMatrix int **  matrix,
int  val,
int  row,
int  col
 

Definition at line 116 of file Utilities.cpp.

float celeste::ReturnDistance float *  pat1,
float *  pat2,
int  size
 

Definition at line 161 of file Utilities.cpp.

int celeste::SafeAbs int  val  ) 
 

Definition at line 282 of file Utilities.cpp.

float celeste::SafeAbs float  val  ) 
 

Definition at line 276 of file Utilities.cpp.

double celeste::SafeAbs double  val  ) 
 

Definition at line 270 of file Utilities.cpp.

int celeste::SafeAbs int  val1,
int  val2
 

Definition at line 262 of file Utilities.cpp.

float celeste::SafeAbs float  val1,
float  val2
 

Definition at line 254 of file Utilities.cpp.

double celeste::SafeAbs double  val1,
double  val2
 

Definition at line 246 of file Utilities.cpp.

void celeste::SetStreamDefaults ostream os  ) 
 

Definition at line 235 of file Utilities.cpp.

References celeste::gPrecision, and celeste::gWidth.

float celeste::Sigmoid float  beta,
float  a_pot,
float  thresh
 

Definition at line 97 of file Utilities.cpp.

float celeste::Sigmoid float  beta,
float  a_pot
 

Definition at line 92 of file Utilities.cpp.

float celeste::Sigmoid float  act  ) 
 

Definition at line 84 of file Utilities.cpp.

void celeste::SkipComments ifstream infile  ) 
 

Definition at line 172 of file Utilities.cpp.


Variable Documentation

long celeste::gPrecision
 

Definition at line 36 of file Utilities.cpp.

Referenced by celeste::GetStreamDefaults(), and celeste::SetStreamDefaults().

long celeste::gWidth
 

Definition at line 37 of file Utilities.cpp.

Referenced by celeste::GetStreamDefaults(), and celeste::SetStreamDefaults().


Generated on Mon Sep 22 01:25:44 2014 for Hugintrunk by  doxygen 1.3.9.1