-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convolution basic implementation #115
Conversation
Yeah, I think this is exactly right. Also, could you look into the test Thanks! -- David On Thu, Jan 9, 2014 at 12:51 PM, ktakagaki notifications@github.com wrote:
|
well, maybe just make Sequence take two ints rather than a pair of ints? -- David On Sat, Jan 11, 2014 at 10:40 AM, David Hall dlwh@cs.berkeley.edu wrote:
|
OK regarding the Ints. Regarding the Travis builds, the same tests are passing just fine on my I've inserted some println()s in the test function to troubleshoot what's Kenta On Sat, Jan 11, 2014 at 7:41 PM, David Hall notifications@github.comwrote:
|
…d by Travis, solved by committing temp.bin to the repository.
OK. I think I've solved the issue, it was that the Travis server was automatically deleting the temporary file "temp.bin" used for testing the binary writing functions. Since the delete was at indeterminate time, different tests were failing on different runs. The issue was solved by committing the temporary file "temp.bin" to the resources folder, I guess this flags it as something that the Travis server shouldn't touch, or something like that. |
Thanks! On Mon, Jan 13, 2014 at 4:33 AM, ktakagaki notifications@github.com wrote:
|
Hi David et al.,
I am working on programming in basic FIR filter capabilities, and have finished the basics of a convolve() function for DenseVector[Double], with unit tests. I need input on option handling before I get too deep in filling out the code...
I've implemented an overhang option like this, with an option object:
def convolve[Input, Output](kernel: Input, data: Input, overhangOpt: OverhangOpt = OverhangOpt.Default()) (implicit canConvolve: CanConvolve[Input, Output]): Output
abstract class OverhangOpt object OverhangOpt{ case class Default() extends OverhangOpt case class Sequence(k: (Integer, Integer)) extends OverhangOpt case class Integer(k: Integer) extends OverhangOpt }
Is this along the lines of what you meant, David, when you were discussing how to handle options?
(https://groups.google.com/forum/#!topic/scala-breeze/o7A49ZYP1kg)