28 #ifndef UNSUPERVISED_RBM_PROBLEMS_SHIFTER_H 29 #define UNSUPERVISED_RBM_PROBLEMS_SHIFTER_H 43 std::vector<RealVector>
data(768,RealVector(19));
44 for(
unsigned x=0; x<=255; x++) {
45 RealVector element(19);
46 for(
size_t i=0; i<8; i++) {
47 element(i) = (x & (1<<i)) > 0;
49 for(
int label=0; label<=2; label++) {
69 for(
size_t i=0; i<8; i++) {
70 element(i+8) = (y & (1<<i)) > 0;
72 data[x*3+label]=element;