Changeset 29 for liacs/nc


Ignore:
Timestamp:
Dec 13, 2009, 2:14:22 PM (15 years ago)
Author:
Rick van der Zwet
Message:

Crap files in wrong directory

Location:
liacs/nc/low-correlation
Files:
1 edited
4 moved

Legend:

Unmodified
Added
Removed
  • liacs/nc/low-correlation/Makefile

    r27 r29  
    22CFLAGS=-lm
    33
    4 all: $(BIN)
    5 
    6 run: $(BIN)
    7         ./$(BIN)
     4mcs.out: mcs.m
     5        @octave -q mcs.m
  • liacs/nc/low-correlation/brute-force-fitness.c

    r27 r29  
    1212int main(int argc, char *argv[]) {
    1313
    14 const int SIZE = 50;
     14const int SIZE = 20;
    1515int * signal = malloc(SIZE * sizeof(int));
    1616int e_total, e_sub;
  • liacs/nc/low-correlation/mcs.m

    r28 r29  
    99    s = rand(n,1);
    1010    s = round(s);
    11     s = (s == 0) .- 1
     11    s = (s == 0) .- 1;
    1212
    1313    % Find whether we are better than everything else
    14     fitness = SHG(s)
     14    fitness = SHG(s);
    1515    if (fitness > best_fitness)
    1616        best_array = s;
    17         best_fitness = fitness;
     17        best_fitness = fitness
    1818        % Little hack to display output nicely
    19         printf("%f", fitness);
    2019        disp(rot90(s,-1));
    2120    endif
Note: See TracChangeset for help on using the changeset viewer.