Node¶
This documentation describes the Node structure and Python interface provided in the node.pyx and node.pxd files.
Contents¶
Node C Structure
PyNode Python Class
Functions (ODE and Output)
Node C Structure¶
The Node C structure defines the internal state and behavior of a node in a dynamical system. It contains generic attributes like state variables, inputs, and parameters. All nodes are many-inputs-single-output (MISO). The simplest case would be a node with one input and one input. A node can have N-states that will be integrated by a numerical integrator over time. A stateless node will have zero states and is useful in using the node as a transfer function.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ———————————————————————–
- class farms_network.core.node.PyNode(unicode name: str, **kwargs)
Bases:
object
Python interface to Node C-Structure
- __init__(*args, **kwargs)
- __new__(**kwargs)
- __reduce__()
PyNode.__reduce_cython__(self)
- __setstate__()
PyNode.__setstate_cython__(self, __pyx_state)
- from_options(cls, node_options: NodeOptions)
From node options
- ode(self, double time, double[:] states, double[:] derivatives, double external_input, double[:] network_outputs, unsigned int[:] inputs, double[:] weights, double noise)
- output(self, double time, double[:] states, double external_input, double[:] network_outputs, unsigned int[:] inputs, double[:] weights)
- parameters
Return a view of parameters in the network