View source: R/neuron_hjelmfelt.R
get_neuron_majority_gate | R Documentation |
It returns a majority gate using neurons based on McCullogh-Pitts
model (neurons returned by get_neuron_hje()
). It supports an
arbitrary number of inputs (although it must be odd).
get_neuron_majority_gate(gate_name, n_inputs, input_cis, binding_inhibit = NULL)
gate_name |
The name of the gate. |
n_inputs |
The number of inputs. |
input_cis |
A numeric vector representing the initial concentration of the inputs. |
binding_inhibit |
Boolean vector where each elements specifies
whether the input with the same index will
be an inhibitory binding or not. If no vector
is passed, no binding will be inhibited. This
parameter is passed to
|
A list representing the gate. To transform this representation into
a CRN (to simulate with react()
, for example) you have
to use the function get_crn_from_neuron_gate_hje()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.