Is there any plan to possibly have a MultivariateRealFunction interface? I had planned to return the linear regression coefficients in the form of a linear function:
public interface MultivariateRealFunction { public double value(double x[]); } // in package "linear" // a function of the form: // y = b0 + b1*x1 + b2*x2 + ... bn*xn public class LinearFunction implements MultivariateRealFunction { public double value(double x[]) { ... }; public int getCoefficientCount() { ... }; public double getCoefficientAt(int idx) { ... }; public double[] getCoefficients() { ... }; } public class LinearRegressionResults { public LinearFunction getFunction() { ... }; public double[] getResidual(); ... // put in all the other statistical values here } public class LinearRegresion { public LinearRegressionResults solve(double x[][], double y[]) { ... }; } Thoughts? -----Original Message----- From: Mark R. Diggory [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 1:42 PM To: Jakarta Commons Developers List Subject: Re: [math] - Multiple Linear Regression Please, attempt to generate unified cvs diff of your changes if they are to existing file and/or attach any new files in a tar archive. Unless your already an Apache developer, its generally the practice at Apache to Contribute for a little while, once the group feels that your effort and content are acceptable, someone will propose a vote to give you commit rights. The Bug queue is kept very short for the Math project, you can expect any patches you submit via bugzilla (or soon Jira) will be reviewed and commented on or applied usually within a days timeframe. Most of this stuff is documented here, please post any questions you may have to the list: http://jakarta.apache.org/commons/math/developers.html thanks, Mark Inger, Matthew wrote: > Should I create a defect, and attach the file there? Or should i at this > point try to get committer access. > > > -----Original Message----- > From: Phil Steitz [mailto:[EMAIL PROTECTED] > > Inger, Matthew wrote: > >>Is there any interest in a Multiple Linear Regression algorithm >>in the math library? Or is it beyond the scope of the project? >>Coincidentally, the algorithm implementation happens to use the >>RealMatrix class from the math library to do it's matrix calculations. >> >> > > Yes. This was part of the motivation for including the RealMatrix > implementation. > > Phil > -- Mark Diggory Software Developer Harvard MIT Data Center http://www.hmdc.harvard.edu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]