get_neuron_majority_gate: Get a majority gate

View source: R/neuron_hjelmfelt.R

get_neuron_majority_gateR Documentation

Get a majority gate

Description

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).

Usage

get_neuron_majority_gate(gate_name, n_inputs, input_cis,
  binding_inhibit = NULL)

Arguments

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 get_neuron_generic_gate_hje().

Value

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().


DanielKneipp/DNAr documentation built on Jan. 7, 2023, 12:42 p.m.