Re: [math] StorelessCovariance

2011-08-18 Thread Patrick Meyer
Thanks for the tip. I was not aware of IntelliJ but I'll certainly look 
into it.


On 8/18/2011 1:27 AM, Ted Dunning wrote:

NetBeans is kind of wasting away for lack of attention.

IntelliJ generally gets these things exactly correct.  SVN, git and mvn are
all mother tongues for it.  There is an excellent community edition and
Apache committers can get a full version.

On Wed, Aug 17, 2011 at 8:09 PM, Patrick Meyer  wrote:


OK, after fidgeting with NetBeans for too long without results, I went with
Phil's suggestion and just used subversion at the command prompt. It was
much easier than trying to configure NetBeans.

I uploaded the patch this evening. It includes two new classes
StorelessCovariance.java and StorelessCovarianceMatrix.**java. I also
included a new test class StorelessCovarianceTest.java.

Interestingly, the one-pass algorithm is slightly less accurate than the
two-pass algorithm. I had to reduce the tolerance from 10E-9 to 10E-7 in
order for tests to pass with the Longley data. The tolerance was not changed
for the Swiss data. It remained 10E-13 for the Swiss data.

The one-pass algorithm is described in a paper by Pebay (2008)
http://prod.sandia.gov/**techlib/access-control.cgi/**2008/086212.pdf

Thanks for everyone's help.

Patrick



On 8/17/2011 12:13 PM, Patrick wrote:


I am workin on the StorelessCovariance per jira MATH-449. However, I'm
having a hard time using subversion via Netbeans. I have successfully
created the new classes and a JUnit test. However, when I run the test I get
the following message,

"caused an ERORR: Absent Code attribute in method that is not native or
abstract in class file org/apache/commons/math/**TestUtils"

Any help would be appreciated. I have a lot to contribute to commons math
but my lack of experience with subversion is really hindering me.

Thanks,
Patrick



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



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




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



Re: [math] StorelessCovariance

2011-08-17 Thread Ted Dunning
NetBeans is kind of wasting away for lack of attention.

IntelliJ generally gets these things exactly correct.  SVN, git and mvn are
all mother tongues for it.  There is an excellent community edition and
Apache committers can get a full version.

On Wed, Aug 17, 2011 at 8:09 PM, Patrick Meyer  wrote:

> OK, after fidgeting with NetBeans for too long without results, I went with
> Phil's suggestion and just used subversion at the command prompt. It was
> much easier than trying to configure NetBeans.
>
> I uploaded the patch this evening. It includes two new classes
> StorelessCovariance.java and StorelessCovarianceMatrix.**java. I also
> included a new test class StorelessCovarianceTest.java.
>
> Interestingly, the one-pass algorithm is slightly less accurate than the
> two-pass algorithm. I had to reduce the tolerance from 10E-9 to 10E-7 in
> order for tests to pass with the Longley data. The tolerance was not changed
> for the Swiss data. It remained 10E-13 for the Swiss data.
>
> The one-pass algorithm is described in a paper by Pebay (2008)
> http://prod.sandia.gov/**techlib/access-control.cgi/**2008/086212.pdf
>
> Thanks for everyone's help.
>
> Patrick
>
>
>
> On 8/17/2011 12:13 PM, Patrick wrote:
>
>> I am workin on the StorelessCovariance per jira MATH-449. However, I'm
>> having a hard time using subversion via Netbeans. I have successfully
>> created the new classes and a JUnit test. However, when I run the test I get
>> the following message,
>>
>> "caused an ERORR: Absent Code attribute in method that is not native or
>> abstract in class file org/apache/commons/math/**TestUtils"
>>
>> Any help would be appreciated. I have a lot to contribute to commons math
>> but my lack of experience with subversion is really hindering me.
>>
>> Thanks,
>> Patrick
>>
>>
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> dev-unsubscribe@commons.**apache.org
>> For additional commands, e-mail: dev-h...@commons.apache.org
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> dev-unsubscribe@commons.**apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


Re: [math] StorelessCovariance

2011-08-17 Thread Patrick Meyer
OK, after fidgeting with NetBeans for too long without results, I went 
with Phil's suggestion and just used subversion at the command prompt. 
It was much easier than trying to configure NetBeans.


I uploaded the patch this evening. It includes two new classes 
StorelessCovariance.java and StorelessCovarianceMatrix.java. I also 
included a new test class StorelessCovarianceTest.java.


Interestingly, the one-pass algorithm is slightly less accurate than the 
two-pass algorithm. I had to reduce the tolerance from 10E-9 to 10E-7 in 
order for tests to pass with the Longley data. The tolerance was not 
changed for the Swiss data. It remained 10E-13 for the Swiss data.


The one-pass algorithm is described in a paper by Pebay (2008) 
http://prod.sandia.gov/techlib/access-control.cgi/2008/086212.pdf


Thanks for everyone's help.

Patrick



On 8/17/2011 12:13 PM, Patrick wrote:
I am workin on the StorelessCovariance per jira MATH-449. However, I'm 
having a hard time using subversion via Netbeans. I have successfully 
created the new classes and a JUnit test. However, when I run the test 
I get the following message,


"caused an ERORR: Absent Code attribute in method that is not native 
or abstract in class file org/apache/commons/math/TestUtils"


Any help would be appreciated. I have a lot to contribute to commons 
math but my lack of experience with subversion is really hindering me.


Thanks,
Patrick



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



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



Re: [math] StorelessCovariance

2011-08-17 Thread Greg Sterijevski
I am building in Netbeans and I believe that Luc is correct. I initially had
problems until I included the junit.jar. (junit-4.8.2.jar)


PS What is your approach to the covariance matrix? Are you building a sum of
squares matrix or keeping updates of the mean, ... etc?

On Wed, Aug 17, 2011 at 1:22 PM, Luc Maisonobe wrote:

> Hi Patrick,
>
> Le 17/08/2011 18:15, Patrick Meyer a écrit :
>
>  I am workin on the StorelessCovariance per jira MATH-449. However, I'm
>> having a hard time using subversion via Netbeans. I have successfully
>> created the new classes and a JUnit test. However, when I run the test I
>> get the following message,
>>
>> "caused an ERORR: Absent Code attribute in method that is not native or
>> abstract in class file org/apache/commons/math/**TestUtils"
>>
>
> Do you have a complete implementation of JUnit in your classpath or only
> the top level API ?
>
> It seems similar to this:  com/wp/2010/03/04/absent-code-**attribute-in-method-that-is-**
> not-native-or-abstract/>
> or this  classformaterror-absent-code-**attribute/>
> and hence elated to API and implementation separation.
>
> Apache Commons Math does not have any runtime dependency and the only test
> time dependency is JUnit.
>
> Luc
>
>
>
>
>> Any help would be appreciated. I have a lot to contribute to commons
>> math but my lack of experience with subversion is really hindering me.
>>
>> Thanks,
>> Patrick
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> dev-unsubscribe@commons.**apache.org
>> For additional commands, e-mail: dev-h...@commons.apache.org
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> dev-unsubscribe@commons.**apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


Re: [math] StorelessCovariance

2011-08-17 Thread Luc Maisonobe

Hi Patrick,

Le 17/08/2011 18:15, Patrick Meyer a écrit :

I am workin on the StorelessCovariance per jira MATH-449. However, I'm
having a hard time using subversion via Netbeans. I have successfully
created the new classes and a JUnit test. However, when I run the test I
get the following message,

"caused an ERORR: Absent Code attribute in method that is not native or
abstract in class file org/apache/commons/math/TestUtils"


Do you have a complete implementation of JUnit in your classpath or only 
the top level API ?


It seems similar to this: 
 
or this 
 
and hence elated to API and implementation separation.


Apache Commons Math does not have any runtime dependency and the only 
test time dependency is JUnit.


Luc




Any help would be appreciated. I have a lot to contribute to commons
math but my lack of experience with subversion is really hindering me.

Thanks,
Patrick

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




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



[math] StorelessCovariance

2011-08-17 Thread Patrick
I am workin on the StorelessCovariance per jira MATH-449. However, I'm 
having a hard time using subversion via Netbeans. I have successfully 
created the new classes and a JUnit test. However, when I run the test I 
get the following message,


"caused an ERORR: Absent Code attribute in method that is not native or 
abstract in class file org/apache/commons/math/TestUtils"


Any help would be appreciated. I have a lot to contribute to commons 
math but my lack of experience with subversion is really hindering me.


Thanks,
Patrick



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



Re: [math] StorelessCovariance

2011-08-17 Thread Phil Steitz
On 8/17/11 9:15 AM, Patrick Meyer wrote:
> caused an ERORR: Absent Code attribute in method that is not
> native or abstract in class file org/apache/commons/math/TestUtils

First of all, THANKS for working on this!

This may not be what you want to hear or the fashionable response,
but I personally never use IDE integrated thingies for exactly this
kind of reason.  Most likely you have some kind of classpath or
compiled class cleanup problem.  Try cleaning everything and
starting with a fresh checkout and also checking that the IDE is not
bringing in an old [math] jar somehow.

As I said, because of this kind of silliness, I always just run "svn
co" or "svn up" from the command line and then "mvn clean test" from
the checked out trunk.  Then "svn diff > newPatch" to create patches
or inspect changes before committing.  Using -Dtest=ClassNameOfTest
is convenient if you don't want to run all of the tests.

Phil

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



[math] StorelessCovariance

2011-08-17 Thread Patrick Meyer
I am workin on the StorelessCovariance per jira MATH-449. However, I'm 
having a hard time using subversion via Netbeans. I have successfully 
created the new classes and a JUnit test. However, when I run the test I 
get the following message,


"caused an ERORR: Absent Code attribute in method that is not native or 
abstract in class file org/apache/commons/math/TestUtils"


Any help would be appreciated. I have a lot to contribute to commons 
math but my lack of experience with subversion is really hindering me.


Thanks,
Patrick

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