※ The number of iterations of the variable schedule is “12” by default,
VR(10, iterations: 12)
It is also possible to change the number of iterations and so on.
Interval schedules
Name of schedule
Code
Fixed interval schedule
FI(5)
Variable interval schedule
VI(5)
Random interval schedule
RI(5)
The time interval defaults in .seconds,
FI(5, unit: .minutes)
It is also possible to change the unit in such a way.
Time schedules
Name of schedule
Code
Fixed time schedule
FT(5)
Variable time schedule
VT(5)
Random time schedule
RT(5)
The time interval defaults in .seconds,
FI(5, unit: .minutes)
It is also possible to change the unit in such a way.
Other schedules
Name of schedule
Code
Continuous reinforcement
CRF()
Extinction schedule
EXT()
Compound schedules
Name of schedule
Code
Concurrent schedule
Conc(FR(5), VI(10)) ※
※ When a common schedule applies to two or more types of operandam like the internal link in concurrent chained schedule, it can be handled by using Shared() keyword. e.g. Conc(Shared(VI(10)))
OperantKit
OperantKit is a tool kit for operant conditioning (instrumental conditioning) experiments written in Swift.
日本語
: README_JP.md
Usage
Examples
Supporting schedules
Simple schedules
Fixed schedules
FR(5)
VR(5)
※RR(5)
※ The number of iterations of the variable schedule is “12” by default,
It is also possible to change the number of iterations and so on.
Interval schedules
FI(5)
VI(5)
RI(5)
The time interval defaults in
.seconds
,It is also possible to change the unit in such a way.
Time schedules
FT(5)
VT(5)
RT(5)
The time interval defaults in
.seconds
,It is also possible to change the unit in such a way.
Other schedules
CRF()
EXT()
Compound schedules
Conc(FR(5), VI(10))
※※ When a common schedule applies to two or more types of operandam like the internal link in concurrent chained schedule, it can be handled by using
Shared()
keyword. e.g.Conc(Shared(VI(10)))
Installation
CocoaPods
Add this to your
Podfile
:and
Carthage
Add this to your
Cartfile
:and
Swift Package Manager
Add this to your
Package.swift
:and
Dependencies
Documents
See https://yutomizutani.github.io/OperantKit/
Operant conditioning (Instrumental conditioning)
Clean architecture
Reactive programming
Development installation
Clone this repository,
And use
make
command,References
Author
Yuto Mizutani, yuto.mizutani.dev@gmail.com
Donate
My “motivation” is fully controlled by continuous reinforcement (FR1) schedule :)
License
OperantKit is available under the MIT license.