-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththreshpass.xml
51 lines (51 loc) · 1.81 KB
/
threshpass.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0"?>
<SpineML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.shef.ac.uk/SpineMLComponentLayer" xsi:schemaLocation="http://www.shef.ac.uk/SpineMLComponentLayer SpineMLComponentLayer.xsd">
<ComponentClass name="threshpass" type="neuron_body">
<Annotation>
<SpineCreator/>
</Annotation>
<Dynamics initial_regime="empty">
<Regime name="empty">
<OnCondition target_regime="empty">
<StateAssignment variable="out">
<MathInline>0</MathInline>
</StateAssignment>
<Trigger>
<MathInline>in < min</MathInline>
</Trigger>
</OnCondition>
<OnCondition target_regime="empty">
<StateAssignment variable="out">
<MathInline>(in-min)/(max-min)</MathInline>
</StateAssignment>
<Trigger>
<MathInline>in >= min && in < max && t > 120 && inhibit < inhibit_thresh</MathInline>
</Trigger>
</OnCondition>
<OnCondition target_regime="empty">
<StateAssignment variable="out">
<MathInline>1</MathInline>
</StateAssignment>
<Trigger>
<MathInline>in>=max && t>120 && inhibit < inhibit_thresh</MathInline>
</Trigger>
</OnCondition>
</Regime>
<Alias name="in_copy" dimension="?">
<MathInline>in</MathInline>
</Alias>
<Alias name="inhibit_copy" dimension="?">
<MathInline>inhibit</MathInline>
</Alias>
<StateVariable name="out" dimension="?"/>
</Dynamics>
<AnalogReceivePort name="in" dimension="?"/>
<AnalogSendPort name="out"/>
<AnalogSendPort name="in_copy"/>
<AnalogReducePort name="inhibit" reduce_op="+" dimension="?"/>
<AnalogSendPort name="inhibit_copy"/>
<Parameter name="min" dimension="?"/>
<Parameter name="max" dimension="?"/>
<Parameter name="inhibit_thresh" dimension="?"/>
</ComponentClass>
</SpineML>