From 28806638345e60bd442bf5fa8e7471f9115b0296 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 26 Apr 2012 11:36:49 +0200 Subject: remove obsolete stuff --- dtrain/hstreaming/lplp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtrain/hstreaming/lplp.rb') diff --git a/dtrain/hstreaming/lplp.rb b/dtrain/hstreaming/lplp.rb index 57353adb..f0cd58c5 100755 --- a/dtrain/hstreaming/lplp.rb +++ b/dtrain/hstreaming/lplp.rb @@ -29,7 +29,7 @@ end # selection def select_k(weights, norm_fun, n, k=10000) weights.sort{|a,b| norm_fun.call(b[1], n) <=> norm_fun.call(a[1], n)}.each { |p| - puts "#{p[0]}\t#{mean(p[1], n)}" + puts "#{p[0]}\t#{mean(p[1], n)}" k -= 1 if k == 0 then break end } -- cgit v1.2.3