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

file_io.h File Reference

Public headers for file_io.c. More...

#include "lissom.h"
#include "cmdparam.h"

Include dependency graph for file_io.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  OrientationHistogram

Defines

#define MAPLE   1
#define SUBTRACT   0
#define SUBTRACTFROM   1
#define SUBTRACTIF   2
#define SUBTRACTFROMIF   3
#define OVERWRITE   4
#define IGNORE   5
#define READ   -1
#define WRITE   -2

Functions

cmdstat cmd_plot_activity ( int argc, const char *argv[] )
cmdstat cmd_load_snapshot ( int argc, const char *argv[] )
void file_io_init_hook ( void )
int compute_orientation_distribution (int lowi, int highi, int lowj, int highj, OrientationHistogram *histo, double activity[NMAX][NMAX],int eye)
 Make an orientation histogram out of the current orientation map and (optionally) a map of activities. More...

int compute_weight_distribution (OrientationHistogram *histo, int ui, int uj, l_weight *weights, int radius, int ar_width, int eye)
 Make an orientation histogram out of the current orientation map and a set of lateral weights. More...

void read_or (FILE * or_fp, int or_min, int or_max, int or_preferences[2][NMAX][NMAX], double or_selectivities[2][NMAX][NMAX] )
void read_wts (Neuron nmap[NMAX][NMAX], const char *basefilename,int ui,int uj, int output_routine, int iter, int action, int *centerx, int *centery)
 Reads Maple plot files of weight values for one neuron. More...

int plot_weights_to_file (int ui, int uj, char *filebasename,int iter)
void save_presentation_image (const char* filename,double fname_angle, double input_v[RNMAX*RNMAX*MAX_NUM_EYES], double initial_activity[NMAX][NMAX], double settled_activity[NMAX][NMAX], int pres)
 Create and save a picture of the input and activations. More...

int save_image_data (void)
 Saves data for visualizing the network's evolution. More...

void swallow_line (FILE *stream)
 Swallows the rest of the current line on the given stream. More...

void weights_IO (int action, FILE *fp)
 This procedure does reading and writing of weights to an ASCII file. More...


Detailed Description

Public headers for file_io.c.

Header:
/u/nn/cvsroot/lissom/src/file_io.h,v 1.15 2000/04/21 20:47:42 jbednar Exp

Definition in file file_io.h.


Define Documentation

#define IGNORE   5
 

Definition at line 20 of file file_io.h.

#define MAPLE   1
 

Definition at line 13 of file file_io.h.

#define OVERWRITE   4
 

Definition at line 19 of file file_io.h.

#define READ   -1
 

Definition at line 23 of file file_io.h.

#define SUBTRACT   0
 

Definition at line 15 of file file_io.h.

#define SUBTRACTFROM   1
 

Definition at line 16 of file file_io.h.

#define SUBTRACTFROMIF   3
 

Definition at line 18 of file file_io.h.

#define SUBTRACTIF   2
 

Definition at line 17 of file file_io.h.

#define WRITE   -2
 

Definition at line 24 of file file_io.h.


Function Documentation

cmdstat cmd_load_snapshot ( int argc,
const char * argv[] )
 

Definition at line 286 of file file_io.c.

cmdstat cmd_plot_activity ( int argc,
const char * argv[] )
 

Definition at line 305 of file file_io.c.

int compute_orientation_distribution ( int lowi,
int highi,
int lowj,
int highj,
OrientationHistogram * histo,
double activity[NMAX][NMAX],
int eye )
 

Make an orientation histogram out of the current orientation map and (optionally) a map of activities.

Definition at line 1348 of file file_io.c.

Referenced by ppm_draw_orientations(), and ppm_draw_presentation().

int compute_weight_distribution ( OrientationHistogram * histo,
int ui,
int uj,
l_weight * weights,
int radius,
int ar_width,
int eye )
 

Make an orientation histogram out of the current orientation map and a set of lateral weights.

Definition at line 1382 of file file_io.c.

Referenced by ppm_draw_weights().

void file_io_init_hook ( void )
 

Definition at line 107 of file file_io.c.

int plot_weights_to_file ( int ui,
int uj,
char * filebasename,
int iter )
 

Definition at line 1497 of file file_io.c.

void read_wts ( Neuron nmap[NMAX][NMAX],
const char * basefilename,
int ui,
int uj,
int output_routine,
int iter,
int action,
int * centerx,
int * centery )
 

Reads Maple plot files of weight values for one neuron.

Note that the inhibitory and excitatory lateral weight values have been scaled by gammainh and gammaexc, respectively.

Definition at line 1087 of file file_io.c.

int save_image_data ( void )
 

Saves data for visualizing the network's evolution.

At each snapshot, the afferent map, od patterns and intitial and final activity patterns are stored.

The cx and cy arrays must be static local to use shmem communication.

(28 Feb 96 J.A.B.) Reorganized and added ifdefs to allow saving only some files if the rest are not needed. Note that disabling any of them may interfere with the operation of the display_od program, so turning them off should only be done if using another display method.

Definition at line 510 of file file_io.c.

void save_presentation_image ( const char * filename,
double fname_angle,
double input_v[RNMAX *RNMAX *MAX_NUM_EYES],
double initial_activity[NMAX][NMAX],
double settled_activity[NMAX][NMAX],
int pres )
 

Create and save a picture of the input and activations.

Definition at line 428 of file file_io.c.

void swallow_line ( FILE * stream )
 

Swallows the rest of the current line on the given stream.

Definition at line 1538 of file file_io.c.

void weights_IO ( int action,
FILE * fp )
 

This procedure does reading and writing of weights to an ASCII file.

fp is the file pointer. Data are saved and read from the N-th PE to the zeroth so that the same locally allocated structures can be used to hold the data. The ipc_get procedure overwrites local weights, so this function can be called only at the end of the simulation.

Definition at line 737 of file file_io.c.

Referenced by load_current(), and save_current().


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