diff options
author | koray kavukcuoglu <koray@kavukcuoglu.org> | 2012-02-13 19:48:37 +0400 |
---|---|---|
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | 2012-02-13 19:48:37 +0400 |
commit | 95b40b1d4eab6acce5efa64f4613fc801ece714c (patch) | |
tree | 5eec2c7ff8b1f984addf10a4d05fb266f72b5d53 | |
parent | 786af443236ba26ab2675b50d0979727e140103c (diff) |
added histograms back
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | gnuplot.lua | 2 | ||||
-rw-r--r-- | init.lua | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e02e3c1..d14a024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ SET(src) -SET(luasrc init.lua gnuplot.lua ) +SET(luasrc init.lua gnuplot.lua hist.lua) ADD_TORCH_PACKAGE(gnuplot "${src}" "${luasrc}") ADD_TORCH_DOK(dok gnuplot "Fundamentals" "Plotting with Gnuplot" 1.3) diff --git a/gnuplot.lua b/gnuplot.lua index b55fc30..9457ee4 100644 --- a/gnuplot.lua +++ b/gnuplot.lua @@ -729,7 +729,7 @@ end -- complete function: compute hist and display it function gnuplot.hist(tensor,bins,min,max) - local h = torch.histc(tensor,bins,min,max) + local h = gnuplot.histc(tensor,bins,min,max) local x_axis = torch.Tensor(#h) for i = 1,#h do x_axis[i] = h[i].val @@ -2,3 +2,4 @@ require 'torch' gnuplot = {} torch.include('gnuplot','gnuplot.lua') +torch.include('gnuplot','hist.lua') |