Google Answers Logo
View Question
 
Q: Curve fitting ( Answered,   0 Comments )
Question  
Subject: Curve fitting
Category: Computers
Asked by: khozy-ga
List Price: $100.00
Posted: 14 Sep 2004 18:06 PDT
Expires: 14 Oct 2004 18:06 PDT
Question ID: 401288
I need a java based solution for curve fitting. I need a java source,
which takes a set of data points (x & y coordinates). The number of
coordinates can be large. The program should use curve
fitting methodology like sigmoids/polynomial equations and return the
modified coordinates. There should be a way to specify tolerances for
the coordinates.
Basically I need a source which allows me to smoothen the curves
Answer  
Subject: Re: Curve fitting
Answered By: hedgie-ga on 09 Oct 2004 12:22 PDT
 
There is number of programs which do that

One using splines is here

http://www.math.ucla.edu/~baker/java/hoefer/Splinesrc.htm

Here is a general explanation of splines

http://www.wam.umd.edu/~petersd/interp.html


Splines provide a smooth interpolation of points in plane
which resembles a flexible elastic strip tied by a rubberband to all points.


Here is another implementation

http://web.mit.edu/fluids-modules/www/potential_flows/VFrecomp1/zrazumovskiy/Spline.java

There are several types of splines, cubic splines and Bezier splines.

This applet illustrates the Bezzier type

http://www.sunsite.ubc.ca/LivingMathematics/V001N01/UBCExamples/Bezier/bezier.html

Please do ask for clarification if more help is needed

Search term was: java, splines


Hedgie

Request for Answer Clarification by khozy-ga on 28 Oct 2004 12:13 PDT
Hi Hedgie,

     Thanks for the reply to my question. But I am afraid it does not
solve my problem. Before posting a question to this forum, i have
already gone through the process of doing a search. I could not find
any java based solutions to my problem which satisfactorily solved my
problem. Finally I bought a commercial one called big faceless graphic
library, which has a limited functionality though.

Clarification of Answer by hedgie-ga on 31 Oct 2004 05:23 PST
Khozy
 
Perhaps it would help if you can describe in more specific details which
features are the programs you have missing,
  
Is it  
  returning modified coordinates
  way to specify tolerances
or what?

 May be an  example  of an input/output page on a small sample would help

Hedgie

Request for Answer Clarification by khozy-ga on 17 Nov 2004 11:18 PST
Hi Hedgie,

    I finally found the way out. I am using matlab now to get the
curve fitting done. This is not the best one but still fits the
requirement.

Khozy

Clarification of Answer by hedgie-ga on 18 Nov 2004 18:24 PST
Khozy

I am glad you found something which works.

If you would care to describe what works and what is atill msissing
I would have another look at the issue.


Hedgie
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy