LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2011, 01:11 PM   #1
fs11
Member
 
Registered: Aug 2006
Posts: 79

Rep: Reputation: 15
drawing curve for given co-ordinates


Hello all,

I am looking to draw a curve for a given set of coordinates using java. For example;

(1,2)
(2,4)
(3,6)


I am aware that a straight line graph can be drawn for a given coordinates using Jfree, but I am not sure about drawing the curve. Any hints on what might be a good java class to use, Any help would be appreciable.

Thanks in advance.
 
Old 06-02-2011, 01:22 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by fs11 View Post
Hello all,

I am looking to draw a curve for a given set of coordinates using java. For example;

(1,2)
(2,4)
(3,6)


I am aware that a straight line graph can be drawn for a given coordinates using Jfree, but I am not sure about drawing the curve. Any hints on what might be a good java class to use, Any help would be appreciable.

Thanks in advance.
Splines ? Or, for just three points, quadratic (second order polynomial) approximation ?
 
Old 06-02-2011, 01:46 PM   #3
fs11
Member
 
Registered: Aug 2006
Posts: 79

Original Poster
Rep: Reputation: 15
Any thing that would allow the 'curve' to pass through the given co-ordinates.

Last edited by fs11; 06-02-2011 at 01:48 PM.
 
Old 06-02-2011, 02:40 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by fs11 View Post
Any thing that would allow the 'curve' to pass through the given co-ordinates.
Look up on the net

polynomial approximation
Lagrange polynomials
.
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux command to find co-ordinates of pixel on screen? clifford227 Linux - Newbie 3 04-22-2014 07:28 AM
Year 70 is a learning curve! Shibanee Linux - Newbie 12 01-29-2009 08:01 PM
Blackberry curve on slackware 12.1 rssn6 Slackware 2 12-18-2008 03:53 PM
How to convert relative mouse co-ordinates to absolute co-ordinates? montylee Linux - General 1 05-22-2008 02:14 AM
how to plot a curve in linux? spinal2 Programming 15 10-23-2006 03:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration