[
https://issues.apache.org/jira/browse/MATH-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438617#comment-13438617
]
Gilles commented on MATH-851:
-----------------------------
Thanks for your interest.
I'm rather picky about the source code formatting. ;) Please have a look at the
discussions that took place in the context of other contributions:
* https://issues.apache.org/jira/browse/MATH-845
* https://issues.apache.org/jira/browse/MATH-815
In addition:
* Local variables must not start with an uppercase letter.
* Be careful not to use bit operators instead of logical ones.
* The exception should probably be {{NoDataException}}.
* In the test class, "10e-14" should be written as "1e-13". Please also refer
to the remark about "locality" in test methods, in one of the above references.
* Do not use LaTeX syntax in the Javadoc comments (they should be either ASCII
or "readable" HTML).
* The unit tests should also cover the preconditions.
About the design:
I don't think that {{RealVector}} should be used here. The accessor
("getEntry") is likely to be much slower than array access.
Utility (i.e "static") methods are usually collected in a class whose name ends
with "...Utils" (that would be "FilterUtils" here) with a unique "private"
constructor.
A method name is preferably a verb (i.e. "convolve").
However such choices are to be discussed on the "dev" ML.
> Add convolution
> ---------------
>
> Key: MATH-851
> URL: https://issues.apache.org/jira/browse/MATH-851
> Project: Commons Math
> Issue Type: New Feature
> Reporter: Clemens Novak
> Priority: Minor
> Attachments: Filter.java, FilterTest.java
>
>
> I created a function performing (one-dimensional) convolution. Currently, the
> function is in a class called Filter, but I am not sure whether this is the
> appropriate place for it(?).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira