MCPcopy Create free account

hub / github.com/davidrmiller/biosim4 / functions

Functions179 in github.com/davidrmiller/biosim4

↓ 1 callersFunctionrandomInsertDeletion
Inserts or removes a single gene from the genome. This is used only when the simulator is configured to allow genomes of unequal lengths during a simu
src/genome.cpp:320
↓ 1 callersFunctionreadLog
Read the biosim4 log file and return the last line. return a dictionary of results
tests/pylib/testlib.py:241
↓ 1 callersFunctionreadStdConfigFile
Read a biosim4 style INI file and cast as a dictionary.
tests/pylib/testlib.py:97
↓ 1 callersMethodregisterConfigFile
src/params.cpp:71
↓ 1 callersFunctionremoveConnectionsToNeuron
During the culling process, we will remove any neuron that has no outputs, and all the connections that feed the useless neuron.
src/genome.cpp:144
↓ 1 callersFunctionresponseCurve
This takes a probability from 0.0..1.0 and adjusts it according to an exponential curve. The steepness of the curve is determined by the K factor whic
src/executeActions.cpp:28
↓ 1 callersMethodrotate90DegCCW
src/basicTypes.h:79
↓ 1 callersMethodsaveGenerationVideo
ToDo: put save_video() in its own thread
src/imageWriter.cpp:200
↓ 1 callersMethodsaveVideoFrameSync
Synchronous version, always returns true
src/imageWriter.cpp:169
↓ 1 callersFunctionsensorShortName
This converts sensor numbers to mnemonic strings. Useful for later processing by graph-nnet.py.
src/analysis.cpp:71
↓ 1 callersMethodsetDefaults
src/params.cpp:23
↓ 1 callersFunctionshowResultParams
can be called after getResultParams() to see the result params in resultdict returned by getResultParams() returns True after displaying dict it
tests/pylib/testlib.py:225
↓ 1 callersFunctionsimStepOneIndiv
Execute one simStep for one individual. This executes in its own thread, invoked from the main simulator thread. First we execute indiv.feedForward()
src/simulator.cpp:67
↓ 1 callersFunctionsimulator
Start of simulator All the agents are randomly placed with random genomes at the start. The outer loop is generation, the inner loop is simStep. Ther
src/simulator.cpp:105
↓ 1 callersFunctionspawnNewGeneration
At this point, the deferred death queue and move queue have been processed and we are left with zero or more individuals who will repopulate the world
src/spawnNewGeneration.cpp:67
↓ 1 callersFunctionunitTestBasicTypes
src/unitTestBasicTypes.cpp:19
↓ 1 callersFunctionupdateResultParams
(thisconfig, testname, addrpdict)
tests/pylib/testlib.py:217
↓ 1 callersMethodzeroFill
src/signals.h:43
MethodColumn
src/signals.h:21
MethodColumn
src/grid.h:29
MethodCoord
src/basicTypes.h:95
MethodDir
src/basicTypes.h:71
MethodImageWriter
Starts the image writer asynchronous thread.
src/imageWriter.cpp:84
MethodLayer
src/signals.h:30
MethodPeeps
src/peeps.cpp:14
MethodPolar
src/basicTypes.h:121
Method__init__
(self, filename, _DEFAULTS=[])
tests/pylib/config.py:25
Method__init__
(self)
tests/pylib/threadutils.py:43
Method__init__
create a new timer, interval is in seconds
tests/pylib/threadutils.py:108
Method_fire
fire the signal and restart it
tests/pylib/threadutils.py:115
Methodabort
src/imageWriter.cpp:219
Methodcancel
cancel the timer
tests/pylib/threadutils.py:126
FunctioncheckIfInt
src/params.cpp:83
Methodconnect
connect a slot to this signal. The parameter slot can be a funtion that takes exactly 2 arguments or a method that takes self plus 2
tests/pylib/threadutils.py:55
FunctiondisplaySignalUse
Print stats about pheromone usage.
src/analysis.cpp:293
MethodgetSensor
Returned sensor values range SENSOR_MIN..SENSOR_MAX
src/getSensor.cpp:197
Methodget_bool
get boolean value from config
tests/pylib/config.py:69
Methodget_float
get int value from config
tests/pylib/config.py:85
Methodget_int
get int value from config
tests/pylib/config.py:77
MethodingestParameter
src/params.cpp:121
Methodinit
src/signals.cpp:9
Methodinit
src/peeps.cpp:19
Methodinitialize
If parameter p.deterministic is true, we'll initialize the RNG with the seed specified in parameter p.RNGSeed, otherwise we'll initialize the RNG with
src/random.cpp:30
FunctionloadStdParamsFromFile
Load biosim4 parameters from an INI file and load them into the testing environment in test config format. e.g. MaxGeneratio
tests/pylib/testlib.py:127
Functionmain
src/main.cpp:19
MethodmakeRandomWeight
src/genome-neurons.h:34
Methodoperator!=
src/basicTypes.h:83
Methodoperator!=
src/basicTypes.h:103
Methodoperator()
This returns a random 32-bit integer. Neither the Marsaglia nor the Jenkins algorithms are of cryptographic quality, but we don't need that. We just n
src/random.cpp:83
Methodoperator*
src/basicTypes.h:106
Methodoperator+
src/basicTypes.h:104
Methodoperator-
src/basicTypes.h:105
Methodoperator==
src/basicTypes.h:82
Methodoperator==
src/basicTypes.h:102
Methodoperator[]
src/signals.h:23
Methodoperator[]
src/grid.h:32
Methodrandom8
src/basicTypes.h:69
FunctionreadTestParamsFromConfig
(Re)read the test config INI file.
tests/pylib/testlib.py:69
FunctionresultsAnalysis
result-generations = int result-survivors-min = int result-survivors-max = int result-diversity-min = float result-di
tests/pylib/testlib.py:265
Methodrotate180Deg
src/basicTypes.h:80
FunctionrunTest
Execute the biosim4 binary using the 'subprocess' module
tests/pylib/testlib.py:182
MethodsaveFrameThread
Runs in a thread; wakes up when there's a video frame to generate. When this wakes up, local copies of Params and Peeps will have been cached for us t
src/imageWriter.cpp:234
MethodsaveVideoFrame
This is a synchronous gate for giving a job to saveFrameThread(). Called from the same thread as the main simulator loop thread during single-thread m
src/imageWriter.cpp:125
FunctionshowTests
display all test sections in app config file
tests/pylib/testlib.py:25
MethodsizeX
src/grid.h:40
MethodsizeY
src/grid.h:41
MethodstartNewGeneration
src/imageWriter.cpp:92
Functionstart_thread
start a new thread to execute the supplied function
tests/pylib/threadutils.py:13
Functionstop_thread
stop thread execution
tests/pylib/threadutils.py:21
Methodtoggle_setting
toggle a setting in the ini file
tests/pylib/config.py:146
FunctionunitTestConnectNeuralNetWiringFromGenome
src/unitTestConnectNeuralNetWiringFromGenome.cpp:8
FunctionunitTestGridVisitNeighborhood
src/unitTestGridVisitNeighborhood.cpp:8
FunctionupdateSections
Re-read the test config INI file. Load into the test environment config object.
tests/pylib/testlib.py:17
FunctionwriteStdTestFile
Write a biosim4 style INI file prior to running a sim test. Test-style params are converted to biosim4-style params before being writ
tests/pylib/testlib.py:153
FunctionwriteTestParamsToConfig
Save the test config object to test config INI file.
tests/pylib/testlib.py:83
Methodwrite_config_setting
write a setting in the ini file
tests/pylib/config.py:138
MethodzeroFill
src/signals.h:24
MethodzeroFill
src/signals.h:33
MethodzeroFill
src/grid.h:30
← previous101–179 of 179, ranked by callers