Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidrmiller/biosim4
/ functions
Functions
179 in github.com/davidrmiller/biosim4
⨍
Functions
179
◇
Types & classes
29
↓ 1 callers
Function
randomInsertDeletion
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 callers
Function
readLog
Read the biosim4 log file and return the last line. return a dictionary of results
tests/pylib/testlib.py:241
↓ 1 callers
Function
readStdConfigFile
Read a biosim4 style INI file and cast as a dictionary.
tests/pylib/testlib.py:97
↓ 1 callers
Method
registerConfigFile
src/params.cpp:71
↓ 1 callers
Function
removeConnectionsToNeuron
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 callers
Function
responseCurve
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 callers
Method
rotate90DegCCW
src/basicTypes.h:79
↓ 1 callers
Method
saveGenerationVideo
ToDo: put save_video() in its own thread
src/imageWriter.cpp:200
↓ 1 callers
Method
saveVideoFrameSync
Synchronous version, always returns true
src/imageWriter.cpp:169
↓ 1 callers
Function
sensorShortName
This converts sensor numbers to mnemonic strings. Useful for later processing by graph-nnet.py.
src/analysis.cpp:71
↓ 1 callers
Method
setDefaults
src/params.cpp:23
↓ 1 callers
Function
showResultParams
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 callers
Function
simStepOneIndiv
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 callers
Function
simulator
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 callers
Function
spawnNewGeneration
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 callers
Function
unitTestBasicTypes
src/unitTestBasicTypes.cpp:19
↓ 1 callers
Function
updateResultParams
(thisconfig, testname, addrpdict)
tests/pylib/testlib.py:217
↓ 1 callers
Method
zeroFill
src/signals.h:43
Method
Column
src/signals.h:21
Method
Column
src/grid.h:29
Method
Coord
src/basicTypes.h:95
Method
Dir
src/basicTypes.h:71
Method
ImageWriter
Starts the image writer asynchronous thread.
src/imageWriter.cpp:84
Method
Layer
src/signals.h:30
Method
Peeps
src/peeps.cpp:14
Method
Polar
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
Method
abort
src/imageWriter.cpp:219
Method
cancel
cancel the timer
tests/pylib/threadutils.py:126
Function
checkIfInt
src/params.cpp:83
Method
connect
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
Function
displaySignalUse
Print stats about pheromone usage.
src/analysis.cpp:293
Method
getSensor
Returned sensor values range SENSOR_MIN..SENSOR_MAX
src/getSensor.cpp:197
Method
get_bool
get boolean value from config
tests/pylib/config.py:69
Method
get_float
get int value from config
tests/pylib/config.py:85
Method
get_int
get int value from config
tests/pylib/config.py:77
Method
ingestParameter
src/params.cpp:121
Method
init
src/signals.cpp:9
Method
init
src/peeps.cpp:19
Method
initialize
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
Function
loadStdParamsFromFile
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
Function
main
src/main.cpp:19
Method
makeRandomWeight
src/genome-neurons.h:34
Method
operator!=
src/basicTypes.h:83
Method
operator!=
src/basicTypes.h:103
Method
operator()
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
Method
operator*
src/basicTypes.h:106
Method
operator+
src/basicTypes.h:104
Method
operator-
src/basicTypes.h:105
Method
operator==
src/basicTypes.h:82
Method
operator==
src/basicTypes.h:102
Method
operator[]
src/signals.h:23
Method
operator[]
src/grid.h:32
Method
random8
src/basicTypes.h:69
Function
readTestParamsFromConfig
(Re)read the test config INI file.
tests/pylib/testlib.py:69
Function
resultsAnalysis
result-generations = int result-survivors-min = int result-survivors-max = int result-diversity-min = float result-di
tests/pylib/testlib.py:265
Method
rotate180Deg
src/basicTypes.h:80
Function
runTest
Execute the biosim4 binary using the 'subprocess' module
tests/pylib/testlib.py:182
Method
saveFrameThread
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
Method
saveVideoFrame
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
Function
showTests
display all test sections in app config file
tests/pylib/testlib.py:25
Method
sizeX
src/grid.h:40
Method
sizeY
src/grid.h:41
Method
startNewGeneration
src/imageWriter.cpp:92
Function
start_thread
start a new thread to execute the supplied function
tests/pylib/threadutils.py:13
Function
stop_thread
stop thread execution
tests/pylib/threadutils.py:21
Method
toggle_setting
toggle a setting in the ini file
tests/pylib/config.py:146
Function
unitTestConnectNeuralNetWiringFromGenome
src/unitTestConnectNeuralNetWiringFromGenome.cpp:8
Function
unitTestGridVisitNeighborhood
src/unitTestGridVisitNeighborhood.cpp:8
Function
updateSections
Re-read the test config INI file. Load into the test environment config object.
tests/pylib/testlib.py:17
Function
writeStdTestFile
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
Function
writeTestParamsToConfig
Save the test config object to test config INI file.
tests/pylib/testlib.py:83
Method
write_config_setting
write a setting in the ini file
tests/pylib/config.py:138
Method
zeroFill
src/signals.h:24
Method
zeroFill
src/signals.h:33
Method
zeroFill
src/grid.h:30
← previous
101–179 of 179, ranked by callers