Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

globals.c File Reference

Global variables and routines for LISSOM. More...

#include <string.h>
#include <math.h>
#include "ipc.h"
#include "cmdparam.h"
#include "lissom.h"
#include "globals.h"
#include "kernel.h"

Include dependency graph for globals.c:

Include dependency graph

Go to the source code of this file.

Compounds

struct  setfnobj_exc_rad_setfn

Functions

cmdstat exc_rad_setfn ( const char* name, void* param, const void* newvalue )
 Automatically called by cmdparam.c to set this parameter. More...

void globals_init_hook ( void )
void advance_iteration_counter (int old_t, int new_t)
 Advances iteration hooks up to (but not including) the given iteration value. More...

cmdstat fixed_arch_param_setfn ( const char* name, void* param, const void* newval)
 Automatically called by cmdparam.c to set this parameter. More...

cmdstat read_only_param_setfn ( const char* name, void* param, const void* newval)

Variables

int circular_aff_wts = True
int circular_lat_wts = True
double circular_radius_trim = 0.5
double uncorrelation = 0.0
int exc_rad = MAX_EXC_RADIUS
char filebase [MAXFILENAMELENGTH] = "lissom"
double gammaexc = 1.0
double gammainh = 1.0
int inh_rad = MAX_INH_RADIUS
int interactive = False
int iteration = 0
int learning = True
int N = NMAX
int normalize_aff = False
int num_eyes = MAX_NUM_EYES
int or_num_angles = MAX_NUM_ANGLES
int presentation = 0
int preset_lat_wts = True
int progress_reports = Uninitialized
int progress_report_interval = 10
int retina_edge_buffer = 0
int rf_radius = MAX_RF_RADIUS
int RN = RNMAX-MAX_RF_RADIUS*2
int startt = 0
int spawn_viewer = Uninitialized
int running_remotely = False
int tsettle = 10
int exc_array_width
 Set to initial exc radius (doesn't change). More...

int exc_array_width_2
 Holds 2*exc_array_width (optimization). More...

int inh_array_width
 Set from initial inh radius (doesn't change). More...

double init_activity [NMAX][NMAX]
 Activity due to input only, before settling. More...

int input_dimension
 The dimensionality of the input. More...

double input_vectors [RNMAX*RNMAX*MAX_NUM_EYES]
 Array of input vectors. More...

int lat_exc_dimension
 Lateral weight array size (excitatory). More...

int lat_inh_dimension
 Lateral weight array size (inhibitory). More...

Neuron cortex_map [NMAX][NMAX]
 Rectangular array of neurons. More...

int MyPE = 0
 Unique number for this processor. More...

int network_initialized = False
 Whether init_network has been called yet. More...

int NPEs = 1
 Number of processors total. More...

int nrows
 Number of current rows per processor. More...

double prev_map_activity [NMAX][NMAX]
 map activity from the last complete iter. More...

double rf_radius_sq
 Precomputed distance for active aff wts. More...

HooklistNum before_input
 Hook set for hooklists_run_list(). More...

HooklistNum after_presentation
 Hook set for hooklists_run_list(). More...

HooklistNum after_learning
 Hook set for hooklists_run_list(). More...


Detailed Description

Global variables and routines for LISSOM.

Header:
/u/nn/cvsroot/lissom/src/globals.c,v 1.82 2000/04/21 20:47:24 jbednar Exp

This file contains variables and parameters that would ordinarily be defined in some other file, but which make sense without that file, e.g. when just displaying saved data rather than training a full network. Most belong in kernel.c, and should be moved there.

Definition in file globals.c.


Function Documentation

void advance_iteration_counter ( int old_t,
int new_t )
 

Advances iteration hooks up to (but not including) the given iteration value.

Definition at line 330 of file globals.c.

cmdstat exc_rad_setfn ( const char * name,
void * param,
const void * newval )
 

Automatically called by cmdparam.c to set this parameter.

Definition at line 343 of file globals.c.

cmdstat fixed_arch_param_setfn ( const char * name,
void * param,
const void * newval )
 

Automatically called by cmdparam.c to set this parameter.

Refuses to set param once network has been initialized.

Definition at line 368 of file globals.c.

void globals_init_hook ( void )
 

Definition at line 90 of file globals.c.

cmdstat read_only_param_setfn ( const char * name,
void * param,
const void * newval )
 

Definition at line 388 of file globals.c.


Variable Documentation

int MyPE = 0
 

Unique number for this processor.

Definition at line 67 of file globals.c.

int N = NMAX
 

Definition at line 35 of file globals.c.

int NPEs = 1
 

Number of processors total.

Definition at line 69 of file globals.c.

int RN = RNMAX-MAX_RF_RADIUS*2
 

Definition at line 47 of file globals.c.

HooklistNum after_learning
 

Hook set for hooklists_run_list().

Definition at line 76 of file globals.c.

HooklistNum after_presentation
 

Hook set for hooklists_run_list().

Definition at line 75 of file globals.c.

HooklistNum before_input
 

Hook set for hooklists_run_list().

Definition at line 74 of file globals.c.

int circular_aff_wts = True
 

Definition at line 23 of file globals.c.

int circular_lat_wts = True
 

Definition at line 24 of file globals.c.

double circular_radius_trim = 0.5
 

Definition at line 25 of file globals.c.

Neuron cortex_map[NMAX][NMAX]
 

Rectangular array of neurons.

Definition at line 66 of file globals.c.

int exc_array_width
 

Set to initial exc radius (doesn't change).

Definition at line 58 of file globals.c.

int exc_array_width_2
 

Holds 2*exc_array_width (optimization).

Definition at line 59 of file globals.c.

int exc_rad = MAX_EXC_RADIUS
 

Definition at line 27 of file globals.c.

char filebase[MAXFILENAMELENGTH] = "lissom"
 

Definition at line 28 of file globals.c.

double gammaexc = 1.0
 

Definition at line 29 of file globals.c.

double gammainh = 1.0
 

Definition at line 30 of file globals.c.

int inh_array_width
 

Set from initial inh radius (doesn't change).

Definition at line 60 of file globals.c.

int inh_rad = MAX_INH_RADIUS
 

Definition at line 31 of file globals.c.

double init_activity[NMAX][NMAX]
 

Activity due to input only, before settling.

Definition at line 61 of file globals.c.

int input_dimension
 

The dimensionality of the input.

Definition at line 62 of file globals.c.

double input_vectors[RNMAX *RNMAX *MAX_NUM_EYES]
 

Array of input vectors.

Definition at line 63 of file globals.c.

int interactive = False
 

Definition at line 32 of file globals.c.

int iteration = 0
 

Definition at line 33 of file globals.c.

int lat_exc_dimension
 

Lateral weight array size (excitatory).

Definition at line 64 of file globals.c.

int lat_inh_dimension
 

Lateral weight array size (inhibitory).

Definition at line 65 of file globals.c.

int learning = True
 

Definition at line 34 of file globals.c.

int network_initialized = False
 

Whether init_network has been called yet.

Definition at line 68 of file globals.c.

int normalize_aff = False
 

Definition at line 36 of file globals.c.

int nrows
 

Number of current rows per processor.

Definition at line 70 of file globals.c.

Referenced by InputVectorWrapper::activate(), CortexMapWrapper::add_input(), InputVectorWrapper::add_input(), FixedWtRegion::add_input(), KernelFactory::create(), Plot::AARImage::draw_border(), FixedWtRegion::input_dimensions(), and Plot::MatrixImage::outline_boundary().

int num_eyes = MAX_NUM_EYES
 

Definition at line 38 of file globals.c.

int or_num_angles = MAX_NUM_ANGLES
 

Definition at line 40 of file globals.c.

int presentation = 0
 

Definition at line 41 of file globals.c.

int preset_lat_wts = True
 

Definition at line 42 of file globals.c.

double prev_map_activity[NMAX][NMAX]
 

map activity from the last complete iter.

Definition at line 71 of file globals.c.

int progress_report_interval = 10
 

Definition at line 44 of file globals.c.

int progress_reports = Uninitialized
 

Definition at line 43 of file globals.c.

int retina_edge_buffer = 0
 

Definition at line 45 of file globals.c.

int rf_radius = MAX_RF_RADIUS
 

Definition at line 46 of file globals.c.

double rf_radius_sq
 

Precomputed distance for active aff wts.

Definition at line 72 of file globals.c.

int running_remotely = False
 

Definition at line 50 of file globals.c.

int spawn_viewer = Uninitialized
 

Definition at line 49 of file globals.c.

int startt = 0
 

Definition at line 48 of file globals.c.

int tsettle = 10
 

Definition at line 51 of file globals.c.

double uncorrelation = 0.0
 

Definition at line 26 of file globals.c.


Generated at Mon Aug 21 00:31:00 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000