You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by mi...@TaosNet.com on 2009/08/19 15:53:41 UTC

[math]: weighted variance?

Does the commons math library have a weighted variance?
I don't see it, just wanted to verify.
If it did, I would expect to see something like:
Variance.evaluate(double[] values, double[] weights, int begin, int length)

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


Re: [math]: weighted variance?

Posted by Matthew Rowles <ro...@gmail.com>.
2009/8/20 Phil Steitz <ph...@gmail.com>:
> mickeydog@TaosNet.com wrote:
>>
>> Does the commons math library have a weighted variance?
>> I don't see it, just wanted to verify.
>> If it did, I would expect to see something like:
>> Variance.evaluate(double[] values, double[] weights, int begin, int
>> length)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
> No, this does not yet exist.  Patches welcome!
>
> Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>


I've requested this as a new feature on JIRA and added my first effort
as a patch.

Feedback is gladly welcomed.

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


Re: [math]: weighted variance?

Posted by Matthew Rowles <ro...@gmail.com>.
2009/8/20 Phil Steitz <ph...@gmail.com>:
> mickeydog@TaosNet.com wrote:
>>
>> Does the commons math library have a weighted variance?
>> I don't see it, just wanted to verify.
>> If it did, I would expect to see something like:
>> Variance.evaluate(double[] values, double[] weights, int begin, int
>> length)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
> No, this does not yet exist.  Patches welcome!
>
> Phil

I'm looking at having a go at implementing evaluate(double[] values,
double[] weights, int begin, int length) in UnivariateStatistic (and
all implementing classes).

Are there any coding styles to adhere to, other than those in the
standard Java conventions?

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


Re: [math]: weighted variance?

Posted by Phil Steitz <ph...@gmail.com>.
mickeydog@TaosNet.com wrote:
> Does the commons math library have a weighted variance?
> I don't see it, just wanted to verify.
> If it did, I would expect to see something like:
> Variance.evaluate(double[] values, double[] weights, int begin, int length)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>   
No, this does not yet exist.  Patches welcome!

Phil

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