I guess what I'm asking is at which point does the array become an ArraySeq and why casting it back to a double array with 'doubles' doesn't work?

Jim


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

--
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