Questions tagged [incanter]

Incanter is a Clojure-based, R-like platform for statistical computing and graphics.

Incanter can be used as a standalone, interactive data analysis environment or embedded within other analytics systems as a modular suite of libraries.

Features:

  • Charting & visualization functions
  • Mathematical functions
  • Statistical functions
  • Matrix & linear algebra functions
  • Data manipulation functions
68 questions
4
votes
1 answer

Incanter sample mean and variance not close to distribution mean and variance

I answered a question regarding generating samples with a positive support and known mean and variance using the gamma distribution in NumPy. I thought I'd try the same in Incanter. But unlike the results I got with NumPy, I could not get a sample…
A. Webb
  • 26,227
  • 1
  • 63
  • 95
4
votes
1 answer

Clojure: incanter.stats Linear Regression Model Not Working

I am following the linear regression example here (use '(incanter core stats datasets)) (def plant-growth (to-matrix (get-dataset :plant-growth) :dummies true)) (def y (sel plant-growth :cols 0)) (def x (sel plant-growth :cols [1 2])) (def lm…
David Williams
  • 8,388
  • 23
  • 83
  • 171
4
votes
1 answer

Clojure / Incanter Data Transformations Capabilities

I'm considering Clojure / Incanter as an alternative to R and just wondering if clojure / incanter have the capabilities to do the following: Import the result of a SQL statement as a data-set ( I do this in R using dbGetQuery ). Reshape the…
MadSeb
  • 7,958
  • 21
  • 80
  • 121
4
votes
0 answers

How to fit data to distributions with Incanter

Is there a good way to fit data to distributions with Incanter similar to fitdistr in R?
user436390
  • 269
  • 1
  • 4
  • 6
4
votes
1 answer

Idiomatic way to add error bars to plot in Incanter

I'm creating a plot of a robot's belief of its distance to a landmark. The x-axis is number of measurements, and the y-axis is distance to landmark, which should include error bars to indicate the confidence in this estimate. I haven't been able to…
troyastorino
  • 235
  • 4
  • 13
3
votes
1 answer

How to display an incanter graph in Jpanel

Does anyone know how to display an incanter chart to jpanel without reverting to jfreechart?
kostas
  • 1,959
  • 1
  • 24
  • 43
3
votes
1 answer

Modified Bessel functions of order (n)

I'm using Incanter and Parallel Colt for a project, and need to have a function that returns the modified Bessel function of an order n for a value v. The Colt library has two methods for order 0 and order 1, but beyond that, only a method that…
JPT
  • 519
  • 3
  • 13
3
votes
2 answers

Incanter dependency

I am trying to implement the following link http://data-sorcery.org/category/pca/ and found myself stuck trying to load the necessary Incanter libraries, i.e. (use '(incanter core stats charts datasets)) The only dependency that I have for Incanter…
sunspots
  • 1,047
  • 13
  • 29
3
votes
1 answer

Incanter labelling a time-series-chart with multiple series

I have an incanter time-series chart, which I can't seem to generate with the correct series labels on. My data looks like this: __________________________ | :Time | :Count | :Name | | 12344 | 0 | "A" | | 12344 | 1 | "B" | | 12344 | …
jamiei
  • 2,006
  • 3
  • 20
  • 28
3
votes
1 answer

Unable to create matrix in incanter 1.4.0

I am playing around with incanter as I am learning clojure and I keep getting an error message when I try to create a matrix in REPL under lein: user=> (use 'incanter.io) nil user=> (use 'incanter.core) nil user=> (def A (matrix [[1 2 3] [4 5 6] [7…
Marshall Shen
  • 1,323
  • 12
  • 17
2
votes
2 answers

Vectorized approach to creating a matrix from the outer product of two vectors

New to Incanter, and was wondering what a vectorized solution to creating a matrix based on the results of the pair-wise product of two lists, would look like. To be clearer, I have two lists that I create with (def x (pdf-poisson (range 4) :lambda…
JPT
  • 519
  • 3
  • 13
2
votes
1 answer

Order multiple columns in Incanter for stacked bar chart

I want to order the stack elements (group-by-k) while keeping order in the global bars (col-k). The $order function doesn't allow ordering multiple columns at once. So the function twice, though, the last sort will not preserve the previous sort. So…
leontalbot
  • 2,513
  • 1
  • 23
  • 32
2
votes
2 answers

Generating Random Numbers in Incanter

How do I use the random number generators in Parallel Colt from incanter? I've listed these dependencies in my project.clj file: :dependencies [ [org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"] …
2daaa
  • 2,788
  • 7
  • 33
  • 44
2
votes
0 answers

Compose Incanter chart objects to show multiple charts with one view call

I have something like this: (defn plot-simulation [f] (let [x (range 1 1000) ye0 (->> (run-simulation 5 0.000000000000000000000001) ;; needs to run all 2000 in paralell (take 1000) (map f)) ye01 (->>…
user3139545
  • 6,882
  • 13
  • 44
  • 87
2
votes
1 answer

Using incanter in leiningen/ clojure

I am new to clojure, and coming from R, I would like to work with Incanter. Basic question: How do I run it? I am running Leiningen 2.3.4 on Java 1.7.0_65 OpenJDK 64-Bit Server VM on a 64 Debian machine. The following dependencies were installed…
Henk
  • 3,634
  • 5
  • 28
  • 54