#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:

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... | |
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 CortexRN-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.
|
|
|
|
|
|
|
|
Upper limit on the number of angle steps that can be saved.
|
|
|
Divisions of the retina.
|
|
|
Per eye.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obsolete and deprecated but kept for compatibility; use a hook with cmd_analyze_portions instead.
|
|
|
|
|
|
|
|
|
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 |
|
|
Determine the units with the maximum activity in the specified rectangular region.
Prerequisites ------------- To be called only by PE 0 Definition at line 667 of file tilt.c. Referenced by compute_activity_statistics(). |
|
|
Header for compute_activity_statistics; columns should match the output of that routine.
|
|
|
|
|
|
Used to store response to each angle for later comparison. Accepts: [which_resp][angle_step][portion_number][which_units] |
|
|
Whether to erase activity summary files. False only initially, True as soon as something is written. (Ensures that file never has old information) |
|
|
Accepts: [which_resp][pres_index][portion_number][which_units].
|
|
|
|
|
|
The step currently being shown.
|
|
|
|
|
|
Parameters which should be in inputs.c.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000