Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ACT-R_Phi
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
AI-CogSci-Group
ACT-R_Phi
Commits
1a739a96
Commit
1a739a96
authored
Nov 25, 2020
by
CD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected equation issue in compute-homeostatic-arousal-factor
parent
c880745d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
user-loads/Affective-Associations.lisp
user-loads/Affective-Associations.lisp
+6
-5
No files found.
user-loads/Affective-Associations.lisp
View file @
1a739a96
...
...
@@ -256,7 +256,7 @@
(
msgStream
(
concatenate
'string
"Phys-data/CEC-Arous"
(
phys-module-pipeID
phys
)
".txt"
)
:direction
:output
:if-exists
:append
:if-does-not-exist
:create
)
(
format
msgStream
"~$,~$,~5$,~5$,~5$,~5$,~5$,~5$,~5$,~5$~&"
(
mp-time
)
(
mp-time-ms
)
(
compute-homeostatic-arousal-factor
)
(
mp-time
)
(
mp-time-ms
)
(
compute-homeostatic-arousal-factor
test
)
(
compute-cort
test
)
(
compute-epi-arousal
test
)
(
compute-crh-arousal
test
)
(
*
(
compute-homeostatic-arousal-factor
)
(
compute-cort
)
...
...
@@ -279,7 +279,7 @@
0
)
(
if
(
and
(
get-module
FEAR
)
(
FEAR-enabled
(
get-module
FEAR
)))
(
*
(
AA-FEAR-arous-ratio
aa
)
(
/
(
FEAR-arousal
(
get-module
FEAR
))
(
log
(
exp
(
FEAR-max-FEAR-val
(
get-modu
le
FEA
R
))))))
(
/
(
FEAR-arousal
(
get-module
FEAR
))
(
log
(
exp
(
FEAR-max-FEAR-val
(
get-moduR
))))))
0
)
(
if
(
and
(
numberp
pred-error-factor
)
(
>
pred-error-factor
0
))
(
*
(
AA-pred-error-arous-ratio
aa
)
pred-error-factor
)
...
...
@@ -302,7 +302,8 @@
"0"
))
(
ret-arousal
0.0001
)
;Arousal variable/value to be returned
(
maxDays
4
)
(
r
0.75
)
(
p5p
0.75
)
(
r
(
/
(
*
-1
(
log
2
))
(
log
p5p
)))
(
beta
2
)
(
timeSinceAsleep
(
-
(
read-from-string
currT
)
(
read-from-string
LA
))))
(
if
(
and
LA
currT
(
>
timeSinceAsleep
0
))
...
...
@@ -312,9 +313,9 @@
(
setf
ret-arousal
1
))
(
if
test
(
with-open-file
(
msgStream
(
concatenate
'string
"Phys-data/Homeostatic-Arousal"
(
phys-module-pipeID
phys
)
".txt"
)
(
msgStream
(
concatenate
'string
"Phys-data/Homeostatic-Arousal"
(
phys-module-pipeID
(
get-module
physio
)
)
".txt"
)
:direction
:output
:if-exists
:append
:if-does-not-exist
:create
)
(
format
msgStream
"~5$
~&"
ret-arousal
)))
(
format
msgStream
"~5$
,~a~&"
ret-arousal
timeSinceAsleep
)))
ret-arousal
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment