On 16/05/12 17:40, Walter Tetzner wrote:
On Wednesday, May 16, 2012 12:34:08 PM UTC-4, Jim foo.bar wrote:

    
---------------------------------------------------------------------------------------------------

    (defn normalize
    [data high-end low-end]
    (let [norm (NormalizeArray.)]
    (do (. norm setNormalizedHigh high-end)
           (. norm setNormalizedLow  low-end)
           (. norm process data))))  ;;returns array of doubles


    (fn [window-size prediction-size]
      (let [twa (TemporalWindowArray. window-size prediction-size)]
      (do (. twa analyze (normalize data)) ;;analyze expects array of
    doubles
            (. twa process (normalize data))))) ;;same here
    
---------------------------------------------------------------------------------------------------



I'm not sure why you're getting the error you are, but it looks like you're not passing in high-end and low-end to 'normalize'.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

no no sorry...i am passing 0.9 and 0.1 respectively...

I do apologize... the correct one is :
---------------------------------------------------
(defn normalize
[data high-end low-end]
(let [norm (NormalizeArray.)]
(do (. norm setNormalizedHigh high-end)
       (. norm setNormalizedLow  low-end)
       (. norm process data))))  ;;returns array of doubles


(fn [window-size prediction-size]
  (let [twa (TemporalWindowArray. window-size prediction-size)]
(do (. twa analyze (normalize data 0.9 0.1)) ;;analyze expects array of doubles
        (. twa process (normalize data 0.9 0.1))))) ;;same here
-------------------------------------------------------------------------------

again sorry!

Jim

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to