MCPcopy Create free account
hub / github.com/chrxh/alien / readNeuronProperty

Function readNeuronProperty

source/EngineInterface/GenomeDescriptionService.cpp:128–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 return (readFloat(data, pos) + 1.0f) / 2;
127 }
128 float readNeuronProperty(std::vector<uint8_t> const& data, int& pos) { return readFloat(data, pos) * 4; }
129 float readDistance(std::vector<uint8_t> const& data, int& pos)
130 {
131 return toFloat(readByte(data, pos)) / 255 + 0.5f;

Callers 1

Calls 1

readFloatFunction · 0.85

Tested by

no test coverage detected