Skip to content

Commit

Permalink
Rename the contrib.accumulators namespace to cascalog.math.accumulators
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason committed Oct 1, 2013
1 parent 4ee46dd commit bcc4e74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
^{:author "Konrad Hinsen"
:doc "A generic accumulator interface and implementations of various
accumulators."}
clojure.contrib.accumulators
cascalog.math.contrib.accumulators
(:refer-clojure :exclude (deftype))
(:use [clojure.contrib.types :only (deftype)])
(:use [clojure.contrib.def :only (defvar)]))
(:use [cascalog.math.contrib.types :only (deftype)])
(:use [cascalog.math.contrib.def :only (defvar)]))

(defmulti add
"Add item to the accumulator acc. The exact meaning of adding an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#^{:author "Stephen C. Gilardi",
:doc "def.clj provides variants of def that make including doc strings and
making private definitions more succinct."}
clojure.contrib.def)
cascalog.math.contrib.def)

(defmacro defvar
"Defines a var with an optional intializer and doc string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
(ns
^{:author "Konrad Hinsen"
:doc "General and algebraic data types"}
clojure.contrib.types
cascalog.math.contrib.types
(:refer-clojure :exclude (deftype))
(:use [clojure.contrib.def :only (name-with-attributes)]))
(:use [cascalog.math.contrib.def :only (name-with-attributes)]))

;
; Utility functions
Expand Down
2 changes: 1 addition & 1 deletion cascalog-math/src/cascalog/math/stats.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:use cascalog.api)
(:require [cascalog.logic.ops :as c]
[cascalog.logic.def :as d]
[clojure.contrib [accumulators :as acc]]))
[cascalog.math.contrib [accumulators :as acc]]))

(defn initialize-mean-variance-parallel [& X]
(map (fn [x] (acc/mean-variance {:mean x :variance 0 :n 1})) X))
Expand Down

0 comments on commit bcc4e74

Please sign in to comment.