Package topo :: Package responsefns
[hide private]
[frames] | no frames]

Source Code for Package topo.responsefns

 1  """ 
 2  A family of response functions for CFProjections. 
 3   
 4  These function objects compute a response matrix when given an input 
 5  pattern and a set of ConnectionField objects.  Response functions come 
 6  in two varieties: ResponseFunction, and CFPResponseFunction.  A 
 7  ResponseFunction (e.g. DotProduct) computes the response due to one 
 8  CF.  To compute the response due to an entire CFProjection, a 
 9  ResponseFunction can be plugged in to CFPRF_Plugin.  CFPRF_Plugin is 
10  one example of a CFPResponseFunction, which is a function that works 
11  with the entire Projection at once.  Some optimizations and algorithms 
12  can only be applied at the full CFPResponseFn level, so there are 
13  other CFPResponseFns beyond CFPRF_Plugin. 
14   
15  Any new response functions added to this directory will automatically 
16  become available for any model. 
17   
18  $Id: __init__.py 3956 2006-06-21 21:00:15Z jbednar $ 
19  """ 
20  __version__='$Revision: 3956 $' 
21   
22  # Automatically discover all .py files in this directory.  
23  import re,os 
24  __all__ = [re.sub('\.py$','',f) for f in os.listdir(__path__[0]) 
25             if re.match('^[^_].*\.py$',f)] 
26