Pythonic Virtual Machine
opLinC Class Reference

Detailed Description

opLinC.png
schema

Computes the linear combination of the input signals 'ina#' and 'inb#', and outputs the result in 'out'. The amount of input signals is set with the 'factors=#' argument when the circuit is created.

Initialisation parameters:

  • factors = # number of factors
  • pushed = True|False push the output buffer immediately if True

Input channels:

  • ina1, ina2, ..., inax = incoming signals
  • inb1, inb2, ..., inbx = incoming signals

Output channels:

  • out = $ \sum_i^{factors} ina_i\times inb_i $

Examples:

1 machine.AddCircuit(type='opLinC', name='combo')
2 machine.AddCircuit(type='opLinC', name='combo', factors=4)
3 machine.AddCircuit(type='opLinC', name='combo', inb1=5.2)

Inherits Circuit.

Additional Inherited Members

- Public Attributes inherited from Circuit
 name
 Name of the circuit. More...
 
 enabled
 if it is working... More...
 
 machine
 Reference to the virtual machine to which this circuit belongs. More...
 
 pushed
 Push output buffer at the end of Update. More...
 
 I
 Dictionary of input channels.
 
 O
 Dictionary of output channels.
 
 cCoreID
 index of circuit in cCore
 

Documentation for pyVAFM
Generated on Wed Feb 8 2017 10:13:49 for pyVAFM by doxygen 1.8.9.1