annotate _FullBNT/KPMtools/sampleUniformInts.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
children
rev   line source
matthiasm@8 1 function M = sampleUniformInts(N, r, c)
matthiasm@8 2
matthiasm@8 3 % M is an rxc matrix of integers in 1..N
matthiasm@8 4
matthiasm@8 5 prob = normalize(ones(N,1));
matthiasm@8 6 M = sample_discrete(prob, r, c);