Is there any possibilities for interpolation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Lanto

Is there any possibilities for interpolation

Post by Lanto » Tue Jan 21, 2003 10:29 am

Hi all,

I'm just discovering JFreeChart, and I'd like to say that it's a very powerful library.
I have a question on its possibilities : is there some classes/methods for polynomial interpolation, and of course drawing it in my graph ? Can JFreeChart do it ? If not, is it planned for future versions ?

Thanks,
Lanto

David Gilbert

Re: Is there any possibilities for interpolation

Post by David Gilbert » Wed Jan 22, 2003 5:01 pm

Hi Lanto,

Do you mean fitting a polynomial function to a set of data points? There's no support for that, although there is a small framework in the com.jrefinery.data.Regression class for fitting curves to data points...that could probably be extended.

Regards,

Dave Gilbert

Lanto

Re: Is there any possibilities for interpolation

Post by Lanto » Wed Jan 22, 2003 5:16 pm

Hi Dave,

That's exactly what I need : I have a set of points, and I'd like to draw a polynomial function (like f(x)=ax^2+bx+c) which represents an (approximative) interpolation for this set.
I think com.jrefinery.data.Regression class could help me, and probably com.jrefinery.data.Function2D too

Regards,

Lanto

Guest

This is eactly what I need as well.

Post by Guest » Tue Mar 18, 2003 7:19 pm

I also want to fit a data set with a "best fit curve" drawn over the top of it.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: This is eactly what I need as well.

Post by david.gilbert » Tue Mar 18, 2003 11:46 pm

Anonymous wrote:I also want to fit a data set with a "best fit curve" drawn over the top of it.
For those that have bought a copy of the JFreeChart Developer Guide, there is a "bonus" demo download containing a few extra demos...one of them shows how to use the Regression class to fit a linear regression line and a "power" regression line to some data and display them on a chart.

Regards,

Dave Gilbert

phred
Posts: 18
Joined: Tue Jun 03, 2003 2:34 pm
Location: Zurich, Switzerland
Contact:

Re: This is eactly what I need as well.

Post by phred » Tue Jun 03, 2003 2:46 pm

david.gilbert wrote:For those that have bought a copy of the JFreeChart Developer Guide, there is a "bonus" demo download containing a few extra demos...one of them shows how to use the Regression class to fit a linear regression line and a "power" regression line to some data and display them on a chart.
could you post the sample picture in here? That'd be great..

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Jun 05, 2003 10:55 pm

Here is the linear regression example:

Image

...and here is the power regression example:

Image
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked