Deep Neural Network for MNIST Handwriting Recognition  1.0
Deep Neural Network for MNIST Handwriting Recognition
Functions
screen.c File Reference

Utitlies for advanced input and output to the terminal screen. More...

#include <stdio.h>
#include <string.h>
#include "screen.h"
#include "../dnn.h"

Functions

void clearScreen ()
 Clear terminal screen by printing an escape sequence. More...
 
void setColor (Color c)
 Set text color in terminal by printing an escape sequence. More...
 
void moveCursorTo (const int x)
 Moves the cursor to the specified horizontal position in the current line. More...
 
void moveCursorLeft (const int x)
 Moves the cursor to the left of the current position by a specified number of steps. More...
 
void locateCursor (const int row, const int col)
 Set cursor position to given coordinates in the terminal window. More...
 
char * getLayerTypeString (LayerType lt)
 
char * getActivationTypeString (ActFctType at)
 
void outputNetworkDefinition (int layerCount, LayerDefinition *layerDefs)
 Outputs a summary table of the network specified via the given array of layer definitions. More...
 

Detailed Description

Utitlies for advanced input and output to the terminal screen.

Author
Matt Lind
Date
July 2015

Function Documentation

void clearScreen ( )

Clear terminal screen by printing an escape sequence.

Clear terminal screen by printing an escape sequence

char* getActivationTypeString ( ActFctType  at)

Returns a string for the given activation type

char* getLayerTypeString ( LayerType  lt)

Returns a string for the given layer type

void locateCursor ( const int  row,
const int  col 
)

Set cursor position to given coordinates in the terminal window.

Parameters
rowRow number in terminal screen
colColumn number in terminal screen
void moveCursorLeft ( const int  x)

Moves the cursor to the left of the current position by a specified number of steps.

Parameters
xNumber of steps that the cursor is moved to the left
void moveCursorTo ( const int  x)

Moves the cursor to the specified horizontal position in the current line.

Parameters
xHorizaontal coordinate to why the cursor is moved to
void outputNetworkDefinition ( int  layerCount,
LayerDefinition layerDefs 
)

Outputs a summary table of the network specified via the given array of layer definitions.

Parameters
layerCountThe number of layer in this network
layerDefsA pointer to an array of layer definitions
void setColor ( Color  c)

Set text color in terminal by printing an escape sequence.

Set text color in terminal by printing an escape sequence