summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-06-27 15:34:03 +0200
committerAndreas Maunz <andreas@maunz.de>2011-06-27 15:34:03 +0200
commit2ff30e6703343110baf4eaba4f1c25ae522b8ece (patch)
tree5c5553d1afbfbb71b9c7b64a151ec289507bef52
parent68e670a006ec995212b21a22bc7936e43f16f205 (diff)
Fixed effect calculation for regression
-rw-r--r--fminer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/fminer.rb b/fminer.rb
index 37a8278..1881f39 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -234,6 +234,7 @@ post '/fminer/bbrc/?' do
# DV: effect calculation
f_arr=Array.new
f[2].each do |id|
+ id=id.keys[0] # extract id from hit count hash
f_arr.push(all_activities[id])
end
f_median=OpenTox::Algorithm.median(f_arr)