Help with type aliases/custom types

20 views
Skip to first unread message

Alexander Kahoun

unread,
Nov 20, 2015, 1:59:24 PM11/20/15
to Scala Breeze
I'm trying to use some of the build in stats functions like variance and stddev. The problem is that I also have a type alias over a SortedMap
type Series = SortedMap[Int, Double]

I'm just testing it out but if I try to pass a Series s into stddev(s) then I'd want the standard deviation of s.values, but I'm getting an error
could not find implicit value for parameter impl: breeze.stats.stddev.Impl[breezetest.Series,VR]
Going through the documentation, I'm not sure exactly what implicit I need to provide to be able to pass a Series to any of the stats functions. Is there an example that someone is aware of that could be shared?

David Hall

unread,
Nov 20, 2015, 2:08:26 PM11/20/15
to scala-...@googlegroups.com

--
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/49474905-5f94-499f-8193-4140f8429c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages