Sliding window

38 views
Skip to first unread message

Georg Heiler

unread,
Apr 27, 2016, 2:08:38 PM4/27/16
to Scala Breeze
Hi,

having an R background and new to scala I wonder how to implement a sliding window in breeze.

Is this achievable with breeze's Values Visitor ? 

thanks a lot.

David Hall

unread,
Apr 27, 2016, 2:09:27 PM4/27/16
to scala-...@googlegroups.com
you can use DenseVector.valuesIterator.sliding(n) to do things like in the post.

-- David

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/38bac0eb-c8ee-44bc-b924-f95cca79cb08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages