You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gilles Sadowski <gi...@harfang.homelinux.org> on 2012/10/19 00:20:46 UTC

[Math] "getDimensions" in MultivariateRealDistribution interface

Hello.

There is a "getDimensions" method in "AbstractMultivariateRealDistribution"
that returns the number of variables.
It would be useful to have this method declared in the interface too. [In
particular, this would allow the mixture model generic class (cf. MATH-816)
to be defined in terms of the interface instead of the abstract class.]

Should I open a new JIRA issue for this or can I refer to the issue
(MATH-815) that led to the initial commit of this code?
Any better name than "getDimensions" for this functionality?


Regards,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [Math] "getDimensions" in MultivariateRealDistribution interface

Posted by Sébastien Brisard <se...@m4x.org>.
Hi,

2012/10/19 Phil Steitz <ph...@gmail.com>:
> On 10/18/12 3:20 PM, Gilles Sadowski wrote:
>> Hello.
>>
>> There is a "getDimensions" method in "AbstractMultivariateRealDistribution"
>> that returns the number of variables.
>> It would be useful to have this method declared in the interface too.
> +1
>
> I might slightly favor "getDimension" as the name, though.
>
> Phil
>
I agree with Phil,
Sébastien


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [Math] "getDimensions" in MultivariateRealDistribution interface

Posted by Phil Steitz <ph...@gmail.com>.
On 10/18/12 3:20 PM, Gilles Sadowski wrote:
> Hello.
>
> There is a "getDimensions" method in "AbstractMultivariateRealDistribution"
> that returns the number of variables.
> It would be useful to have this method declared in the interface too.
+1

I might slightly favor "getDimension" as the name, though.

Phil
>  [In
> particular, this would allow the mixture model generic class (cf. MATH-816)
> to be defined in terms of the interface instead of the abstract class.]
>
> Should I open a new JIRA issue for this or can I refer to the issue
> (MATH-815) that led to the initial commit of this code?
> Any better name than "getDimensions" for this functionality?
>
>
> Regards,
> Gilles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org