multi-chart
function. (#196)itext library was linked to broken version of Boncy Castle library;set-dataThis release includes multiple bug fixes & improvements, together with update of dependencies to fresh versions.
Please note that Clojure 1.9.0 isn't supported yet because of the problems with ClojureQL.
This is first preview of the Incanter 2.0. This release incorporates the code implemented as part of the GSoC 2014 project "Incanter and core.matrix integration" done by Aleksandr Sorokoumov, aka Gerrrr. (For full list of changes made during GSoC, please look to wiki).
Please, note that this release includes only part of changes planned for Incanter 2.0
:vectorz as default
implementations. You can use another implementation by adding corresponding dependency
to your project file & selecting implementation using the set-current-implementation
function.:deprecated flag in meta-information, for full list
please look to
wiki.incanter.core/matrix called on seq will produce vector object instead of row-matrix;first, rest, map,
reduce, filter, etc on matrices is not generally supported (although might still
work on some implementations, e.g. clatrix). It's recommended to use corresponding
functions from core.matrix;decomp-cholesky, decomp-svd, decomp-eigenvalue, decomp-lu,
decomp-qr is changed to match core.matrix's implementation. See
core.matrix wiki
for more details;incanter.core/dataset API is changed. Now it accepts column names and seq of rows,
matrix, map of columns or seq of row maps as arguments;incanter.core/sel does not support automatic cast between strings and keywords
anymore;incanter.core/col-names removed. Please use
clojure.core.matrix.dataset/select-columns instead.lein-sub & lein-modules plugins to do the same. Just execute lein sub test or
lein modules install to perform testing, or installing of every Incanter's module;kendalls-tau now returns correct value.incanter.stats/sample-wishart throws error during execution;map/filter/...update function
(Issue #321);median returns Double/NaN when it receives empty list (PR #263);sel returns dataset when :rows :all specified, independent on size/structure of the
dataset (PR #259);kurtosis (PR #260);group-by when repeated rows for the legend column are present
(PR #253);rank-index function (PR #261, #262).incanter.charts to work with series (PR #278):
has-series? - checks, does the chart have the series with given name;remove-series - removes given series from chart;extend-line - adds new data to existing series, or creates new series if it doesn't exist.save-svg can also accept the OutputStream, not only the file name (PR #279).from-repo parameter of get-dataset functionsample-model-paramsread-datasetlog-axis (issue #210)gradient-fn to estimate f-prime when it is not
provided. This also entailed changing gradient-fn to accept matrices as well as
vectors.xy-plot and time-series-plot modified to take into account group-by names
correctly for legend labels (issue #216)draw for uniform-distribution uses specified min & max parametersrho-k in fmin-bfgs:legend for time-series-plotminus for a single argument (issue #195)chisq-test works correctly when :x is one sample collectionincanter.core:
aggregate performs the aggregation of data on given fields (issue #223)get-column-id returns keyword version of column-key if convenientincanter.stats:
gamma-coefficient functionconcordant-pairs functionread-dataset now accepts the :comment-char parameter that specifies the commentary
characterpdf-gamma,
cdf-gamma & sample-gamma functions the new parameter :scale was introduced
(equivalent to the old :rate parameter), and :rate parameter is now the
1/:scale...Made an error during deployment of 1.5.3, so 1.5.4 was released to fix this problem. Don't use 1.5.3!
pow & atan2 functions weren't implemented for matrices & datasets.read-dataset now converts empty fields to nil, or user-supplied value (see Issue 182).incanter.charts:
set-point-size to control size of points on scatter plots.incanter.core:
rename-cols allows to rename columns of datasetreplace-column replaces data in column of dataset with new valuesadd-column allows easier to add new column to datasetadd-derived-column adds a column to a dataset that is a function of existing
columnsmelt implements part of functionality of R's melt function from reshape
package.view function wasn't defined for Matrix classsel function on nil was implemented, preventing from getting errors when there
was no data specified in the $data variablencol & nrow functionsto-vect was implemented only for Matrix class, now it works with any
support data typesel returns a dataset even if result has one row, and we're selecting
columns.transform-with was used with Matrix, then source data was modified instead of working on copy of datasolve was used, the exception was thrownincanter.interpolation namespace).heat-map - :include-zero?.tail function was added.reorder-columns for a dataset that changes the order of appearance of the datset columns. It does not alter the row order.save will print data to standard output if "-" is specified as file name.sel and other functions ($, head, tail, etc.) can be used with lists (java.util.List).toeplitz function was added to generate Toeplitz matrix for given vector.scatter-plot-matrix function was added to incanter.chart module.incanter.optimize was extended with minimize and maximise functions for performing unconstrained nonlinear optimization using the BFGS algorithm.incanter.svg module provides save-svg function to output charts to SVG files. Include incanter-svg as dependency to use this functionality.linear-model now correctly calculates t-probs.linear-model for some data.sel will return dataset when :rows or :cols are non-numbers - this changes
previous behaviour when list was returned if only one row or col was specified.mult & mmult always return matrices, even if it's 1x1 matrix.conj'ing of matrix & vector doesn't work with new Clatrix - you can either use bind-rows, or wrap vector into another vector:
(def M (matrix [[0 1] [2 3] [4 5]])) (conj M [6 7]) ; => doesn't work (bind-rows M [6 7]) ; => works (conj M [[6 7]]) ; => works
decomp-qr performs only full QR decomposition, and the :type parameter is ignored.
On 64-bit Linux you need to install libgfortran3 package. See jblas wiki for more details
Major changes are:
incanter.sql module was added to allow load datasets from databases using ClojureQL.incanter.chart moduleMajor changes are:
math.combinatorics: 0.0.3incanter.excel): 3.8clj-time: 0.4.4incanter.core/get-input-stream & incanter.core/get-input-reader are removed in
favor of input-stream & reader from clojure.java.ioCan you improve this documentation? These fine people already did:
Alex Ott & Paul LamEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |