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

tilt.c File Reference

Routines for testing tilt illusions. More...

#include <math.h>
#include <string.h>
#include <stdio.h>
#include "ipc.h"
#include "cmdparam.h"
#include "inputs.h"
#include "tilt.h"
#include "ppm_draw.h"
#include "analyze.h"
#include "file_io.h"
#include "globals.h"
#include "kernel.h"
#include "lissom.h"

Include dependency graph for tilt.c:

Include dependency graph

Go to the source code of this file.

Compounds

struct  Act_Feature
struct  cmdobj_analyze_activity
struct  cmdobj_analyze_portions
struct  cmdobj_divide_cortex
struct  cmdobj_training_angle_distribution

Defines

#define NMAP_FEATURES   10
#define MAX_NUMBER_OF_PRESENTATIONS   3
 Divisions of the retina. More...

#define MAX_NUM_PORTIONS   2
#define MAX_ANGLE_STEPS   360
 Upper limit on the number of angle steps that can be saved. More...

#define MAX_NUMBER_OF_SPOTS   5
 Per eye. More...

#define ALL_UNITS   0
#define MAX_UNITS   1
#define INIT   0
#define SETL   1
#define PLINE(start,repeat)    fprintf(fp,start); for (i=0;i<num_portions; i++) fprintf(fp,repeat); fprintf(fp,"\n")
#define PPORT(start,repeat)    fprintf(fp,start); for (i=0;i<num_portions; i++) fprintf(fp,repeat,i); fprintf(fp,"\n")

Functions

cmdstat cmd_analyze_activity ( int argc, const char *argv[] )
 Obsolete and deprecated but kept for compatibility; use a hook with cmd_analyze_portions instead. More...

cmdstat cmd_analyze_portions ( int argc, const char *argv[] )
cmdstat cmd_divide_cortex ( int argc, const char *argv[] )
cmdstat cmd_training_angle_distribution ( int argc, const char *argv[] )
void compute_activity_statistics (double activity[NMAX][NMAX], double weighted_or_prefs[3][2][2], double base_response[MAX_ANGLE_STEPS][MAX_NUMBER_OF_SPOTS][2], FILE *fp)
 Determine the maximum activation levels, the orientations of the neurons having those levels, etc. More...

void find_activity_max (double activity[NMAX][NMAX], int *nexamples, Act_Feature *examples, double weightedORpref[2], int ilow, int ihigh, int jlow, int jhigh)
 Determine the units with the maximum activity in the specified rectangular region. More...

void print_summary_header (FILE *fp, int num_portions)
 Header for compute_activity_statistics; columns should match the output of that routine. More...

void tilt_init_hook ( void )

Variables

int save_steps = 1
int t_presentation = Uninitialized
int number_of_portions = Uninitialized
int cortex_portion_boundary = Uninitialized
int save_angle_responses = False
int retina_portion_boundary = Uninitialized
 Parameters which should be in inputs.c. More...

int truncate_inputs_across_boundary = False
int current_angle_step = 0
 The step currently being shown. More...

double average_or_prefs [2][3][MAX_NUM_PORTIONS][2]
 Accepts: [which_resp][pres_index][portion_number][which_units]. More...

int append_summary = False
 Whether to erase activity summary files. More...

double ae_base_response [2][MAX_ANGLE_STEPS][MAX_NUMBER_OF_SPOTS][2]
 Used to store response to each angle for later comparison. More...


Detailed Description

Routines for testing tilt illusions.

Header:
/u/nn/cvsroot/lissom/src/tilt.c,v 1.62 2000/04/26 04:18:31 jbednar Exp

Only tested with identical binocular inputs, so may need extensions for ocular dominance simulations.

The routines in this file assume the following organizations:

 World Retina Cortex

RN-1 ------------ 0 ----------- 0 ----------- | | | | | | | | | | | | y | | r | | j | | | | | | | | | | | | | | 0.0 ----------- RN-1 ----------- N-1 ----------- 0.0 x RN-1 0 c RN-1 0 i N-1

Angles

PI/2 | / | / Theta |/ ) PI------------- 0 | | 3PI/2

Note that rows and columns are switched from the usual conventions. Coordinates and angles reported in the text files reflect these definitions. These match the ones used in the save_image_data() calls, but may not match others scattered throughout the LISSOM code. Where necessary, adjustments have been made when calling routines from other files to translate these conventions into those assumed by the other routines.

Definition in file tilt.c.


Define Documentation

#define ALL_UNITS   0
 

Definition at line 83 of file tilt.c.

#define INIT   0
 

Definition at line 86 of file tilt.c.

#define MAX_ANGLE_STEPS   360
 

Upper limit on the number of angle steps that can be saved.

Definition at line 75 of file tilt.c.

#define MAX_NUMBER_OF_PRESENTATIONS   3
 

Divisions of the retina.

Definition at line 70 of file tilt.c.

#define MAX_NUMBER_OF_SPOTS   5
 

Per eye.

Definition at line 79 of file tilt.c.

#define MAX_NUM_PORTIONS   2
 

Definition at line 72 of file tilt.c.

#define MAX_UNITS   1
 

Definition at line 84 of file tilt.c.

#define NMAP_FEATURES   10
 

Definition at line 68 of file tilt.c.

#define SETL   1
 

Definition at line 87 of file tilt.c.


Function Documentation

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

Obsolete and deprecated but kept for compatibility; use a hook with cmd_analyze_portions instead.

Definition at line 319 of file tilt.c.

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

Definition at line 241 of file tilt.c.

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

Definition at line 345 of file tilt.c.

void compute_activity_statistics ( double activity[NMAX][NMAX],
double weighted_or_prefs[3][2][2],
double base_response[MAX_ANGLE_STEPS][MAX_NUMBER_OF_SPOTS][2],
FILE * fp )
 

Determine the maximum activation levels, the orientations of the neurons having those levels, etc.

 Prerequisites: -------------- Gets values from measure_or_pref, so that must have been called recently enough to be relevant to the current map  

Definition at line 482 of file tilt.c.

void find_activity_max ( double activity[NMAX][NMAX],
int * nexamples,
Act_Feature * examples,
double weightedORpref[2],
int ilow,
int ihigh,
int jlow,
int jhigh )
 

Determine the units with the maximum activity in the specified rectangular region.

 Prerequisites ------------- To be called only by PE 0

Gets values from measure_or_pref, so that must have been called recently enough to be relevant to the current map

examples must be at least nexamples long

Definition at line 667 of file tilt.c.

Referenced by compute_activity_statistics().

void print_summary_header ( FILE * fp,
int num_portions )
 

Header for compute_activity_statistics; columns should match the output of that routine.

Definition at line 449 of file tilt.c.

void tilt_init_hook ( void )
 

Definition at line 176 of file tilt.c.


Variable Documentation

double ae_base_response[2][MAX_ANGLE_STEPS][MAX_NUMBER_OF_SPOTS][2]
 

Used to store response to each angle for later comparison.

Accepts: [which_resp][angle_step][portion_number][which_units]

Definition at line 161 of file tilt.c.

int append_summary = False
 

Whether to erase activity summary files.

False only initially, True as soon as something is written. (Ensures that file never has old information)

Definition at line 157 of file tilt.c.

double average_or_prefs[2][3][MAX_NUM_PORTIONS][2]
 

Accepts: [which_resp][pres_index][portion_number][which_units].

Definition at line 152 of file tilt.c.

int cortex_portion_boundary = Uninitialized
 

Definition at line 109 of file tilt.c.

int current_angle_step = 0
 

The step currently being shown.

Definition at line 149 of file tilt.c.

int number_of_portions = Uninitialized
 

Definition at line 108 of file tilt.c.

int retina_portion_boundary = Uninitialized
 

Parameters which should be in inputs.c.

Definition at line 113 of file tilt.c.

int save_angle_responses = False
 

Definition at line 110 of file tilt.c.

int save_steps = 1
 

Definition at line 106 of file tilt.c.

int t_presentation = Uninitialized
 

Definition at line 107 of file tilt.c.

int truncate_inputs_across_boundary = False
 

Definition at line 114 of file tilt.c.


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