[Fwd: covariance matrix in jama]




-------- Original Message --------
Subject: 	covariance matrix in jama
Date: 	Tue, 26 May 2009 05:31:26 -0400
From: 	Alexandros Altis <alexandros.altis@googlemail.com>
Reply-To: 	alexandros.altis@googlemail.com
To: 	boisvert@nist.gov



Dear discussion group,
 
I am new to Java/Jama. Simple task: I would like to calculate the 
covariance by "B.covar()" of a given matrix B in JAMA.
 
How can I extend the Matrix class by my own method "covar()"?
 
I tried inheritance. I created the class myMatrix as an extension of 
Matrix. There I wanted to add the method covar(). But A,m,n of Matrix 
are not visible. Is it because A,m,n in the Matrix class are private? 
Why are they private? Do I always have to use getArray(), 
getColumnsDimension(), etc. for access?
 
Thanks for your help,
 
Alex
 
 




Date Index | Thread Index | Problems or questions? Contact list-master@nist.gov