Package responsefn
source code
A family of response functions for CFProjections.
These function objects compute a response matrix when given an input
pattern and a set of ConnectionField objects. Response functions come
in two varieties: ResponseFunction, and CFPResponseFunction. A
ResponseFunction (e.g. DotProduct) computes the response due to one
CF. To compute the response due to an entire CFProjection, a
ResponseFunction can be plugged in to CFPRF_Plugin. CFPRF_Plugin is
one example of a CFPResponseFunction, which is a function that works
with the entire Projection at once. Some optimizations and algorithms
can only be applied at the full CFPResponseFn level, so there are
other CFPResponseFns beyond CFPRF_Plugin.
Any new response functions added to this directory will automatically
become available for any model.
$Id: __init__.py 8937 2008-08-21 13:28:43Z ceball $
Version:
$Revision: 8937 $
|
|
DotProduct
Return the sum of the element-by-element product of two 2D
arrays.
|
|
|
ResponseFn
Abstract base class for response functions that plug into CFPRF_Plugin.
|