SpikeStream Library
0.2
|
#include "SpikeStreamException.h"
#include "Util.h"
#include "WeightlessNeuron.h"
#include <QDebug>
#include <algorithm>
#include <iostream>
Go to the source code of this file.
Variables | |
byte | lookup [] |
byte lookup[] |
{ 0,1,1,2, 1,2,2,3, 1,2,2,3, 2,3,3,4, 1,2,2,3, 2,3,3,4, 2,3,3,4, 3,4,4,5, 1,2,2,3, 2,3,3,4, 2,3,3,4, 3,4,4,5, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 1,2,2,3, 2,3,3,4, 2,3,3,4, 3,4,4,5, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 3,4,4,5, 4,5,5,6, 4,5,5,6, 5,6,6,7, 1,2,2,3, 2,3,3,4, 2,3,3,4, 3,4,4,5, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 3,4,4,5, 4,5,5,6, 4,5,5,6, 5,6,6,7, 2,3,3,4, 3,4,4,5, 3,4,4,5, 4,5,5,6, 3,4,4,5, 4,5,5,6, 4,5,5,6, 5,6,6,7, 3,4,4,5, 4,5,5,6, 4,5,5,6, 5,6,6,7, 4,5,5,6, 5,6,6,7, 5,6,6,7, 6,7,7,8 }
Copied from NRM. I think this is an array where each number represents the Hamming distance between XORed bytes. So for example, if the two bytes 10000111 and 00000111 are XORed, you get the number 10000000, or 128, which should result in 1 when looked up in the array. FIXME: CHECK THIS ARRAY
Definition at line 21 of file WeightlessNeuron.cpp.