Neurons

Documentation of Neuron classes.

Neuron

class pylgn.core.Neuron(background_response, annotations)[source]

Neuron base class.

Variables:
  • center_response
  • background_response (quantity scalar) – Background activity.
  • annotations (dict) – Dictionary with various annotations on the Neuron object.
  • connections (dict) – Dictionary with connected neurons including the connectivity kernel and weight.
  • response (quantity array) – Spatiotemporal response
  • response_ft (quantity array) – Fourier transformed response
  • irf (quantity array) – Spatiotemporal impulse-response function
  • irf_ft (quantity array) – Fourier transformed impulse-response function
__init__(background_response, annotations)[source]

Neuron constructor

Parameters:
  • background_response (quantity scalar) – Background activity.
  • annotations (dict) – Dictionary with various annotations on the Neuron object.
add_connection(neuron, kernel, weight)[source]

Add connection to another neuron.

Parameters:
  • neuron (pylgn.Neuron) – Source neuron
  • kernel (functions) – Connectivity kernel
  • weight (float) – Connectivity weight
annotate(annotations)[source]

Add annotations to a Neuron object.

Parameters:annotations (dict) – Dictionary containing annotations
center_response

Response of neuron in the center of grid over time

Returns:out – Response of neuron in the center of grid over time
Return type:quantity array
evaluate_irf_ft(w, kx, ky)[source]

Evaluates the Fourier transform of impulse-response function

Ganglion class

class pylgn.core.Ganglion(background_response, kernel, annotations={})[source]
__init__(background_response, kernel, annotations={})[source]

Ganglion constructor

Parameters:
  • background_response (quantity scalar) – Background activity.
  • kernel (function) – Impulse-response function.
  • annotations (dict) – Dictionary with various annotations.
evaluate_irf_ft(w, kx, ky)[source]

Evaluates the Fourier transform of impulse-response function

set_kernel(kernel)[source]

Set the impulse-response function.

Parameters:kernel (func or tuple) – Fourier transformed kernel/ tuple of Fourier transformed spatial and temporal kernel

Relay class

class pylgn.core.Relay(background_response, annotations={})[source]
__init__(background_response, annotations={})[source]

Relay constructor

Parameters:
  • background_response (quantity scalar) – Background activity.
  • annotations (dict) – Dictionary with various annotations.
evaluate_irf_ft(w, kx, ky)[source]

Evaluates the Fourier transform of impulse-response function

Cortical class

class pylgn.Cortical(background_response, annotations={})[source]
__init__(background_response, annotations={})[source]

Cortical constructor

Parameters:
  • background_response (quantity scalar) – Background activity.
  • annotations (dict) – Dictionary with various annotations.
evaluate_irf_ft(w, kx, ky)[source]

Evaluates the Fourier transform of impulse-response function

DescriptiveNeuron class

class pylgn.core.DescriptiveNeuron(background_response, kernel, annotations={})[source]
__init__(background_response, kernel, annotations={})[source]

Descriptive neuron constructor

Parameters:
  • background_response (quantity scalar) – Background activity.
  • kernel (function) – Impulse-response function.
  • annotations (dict) – Dictionary with various annotations.
evaluate_irf_ft(w, kx, ky)[source]

Evaluates the Fourier transform of impulse-response function

set_kernel(kernel)[source]

Set the impulse-response function.

Parameters:kernel (func or tuple) – Fourier transformed kernel/ tuple of Fourier transformed spatial and temporal kernel