Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/gnuplot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2012-02-13 19:48:37 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2012-02-13 19:48:37 +0400
commit95b40b1d4eab6acce5efa64f4613fc801ece714c (patch)
tree5eec2c7ff8b1f984addf10a4d05fb266f72b5d53
parent786af443236ba26ab2675b50d0979727e140103c (diff)
added histograms back
-rw-r--r--CMakeLists.txt2
-rw-r--r--gnuplot.lua2
-rw-r--r--init.lua1
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
diff --git a/init.lua b/init.lua
index 73698ad..e4a1abb 100644
--- a/init.lua
+++ b/init.lua
@@ -2,3 +2,4 @@ require 'torch'
gnuplot = {}
torch.include('gnuplot','gnuplot.lua')
+torch.include('gnuplot','hist.lua')