On Wed, Oct 9, 2013 at 7:48 PM, Bernhard Spinnler
<bernhard.spinn...@gmx.net> wrote:
> Hi Richard,
>
> Ah, I searched the list but didn't find those posts beforeā€¦
>
> I can easily imagine that correlation is defined differently in different
> disciplines. Both ways are correct and it's just a convention or definition.
> In my field (Digital Communications, Digital Signal Processing) the vast
> majority uses the convention implemented by the code. Here are a few
> examples of prominent text books:
>
> - Papoulis, "Probaility, Random Variables, and Stochastic Processes",
> McGraw-Hill, 2nd ed.
> - Benvenuto, Cherubini, "Algorithms for Communications Systems and their
> Applications", Wiley.
> - Carlson, "Communication Systems" 4th ed. 2002, McGraw-Hill.
>
> Last not least, Matlab's xcorr() function behaves exactly like correlate()
> does right now, see
> - http://www.mathworks.de/de/help/signal/ref/xcorr.html
>
> But, as you say, the most important aspect might be, that most people will
> probably prefer changing the docs instead of changing the code.

Yeah, unless the current behaviour is actually broken or redundant in
some way, we're not going to switch from one perfectly good convention
to another perfectly good convention and break everyone's code in the
process.

The most helpful thing would be if you could file a pull request that
just changes the docstring to what you think it should be. Extra bonus
points if it points out that there is another definition some people
might be expecting instead, and explains how those people can use the
existing functions to get what they want. :-)

-n
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to