Questions tagged [curve]

In mathematics, a curve (also called a curved line in older texts) is, generally speaking, an object similar to a line but which is not required to be straight.

1306 questions
8
votes
2 answers

iOS how to calculate number of pixels/area enclosed by a curve?

I got an arbitrary shaped curve, enclosing some area. I would like to approximate the number of pixels that the curve is enclosing on an iPhone/iPad screen. How can I do so? A curve is defined as a successive x/y coordinates of points. A curve is…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
8
votes
4 answers

Is an implementation of Iterative Closest Point (ICP) available in R?

Does someone have an implementation of Iterative Closest Point (ICP) algorithm for two dimensions (2D) in R? Here is an attempt in c# Iterative Closest Point Implementation Here is a more general question iterative closest point library This is to…
Etienne Low-Décarie
  • 13,063
  • 17
  • 65
  • 87
7
votes
1 answer

Modeling hand movement as a 3D curve in Matlab/Java

I just need some directions regarding a problem I have, where to look, etc.. I am using a movement tracking glove for one of my projects, which returns an X, Y and Z values for each finger and for the palm. What I would like to do is to first create…
Cristol.GdM
  • 505
  • 2
  • 5
  • 21
7
votes
6 answers

Matlab, how to calculate AUC (Area Under Curve)?

I have the file data.txt with two columns and N rows, something like this: 0.009943796 0.4667975 0.009795735 0.46777886 0.009623984 0.46897832 0.009564759 0.46941447 0.009546991 0.4703958 0.009428543 0.47224948 0.009375241 0.47475737 0.009298249…
DavideChicco.it
  • 3,318
  • 13
  • 56
  • 84
7
votes
3 answers

.animate with a curve

First take a look: The cat needs to move to the x in a curve. (see the arrow) When the cat hits the x, it should stay 10 seconds, and after that the cat should go back to o, again in a curve, and repeat. I tried it with this code: function curve()…
bernte
  • 1,184
  • 2
  • 19
  • 34
7
votes
4 answers

How to calculate points on a curve that matches CSS3 created border radius? Geometry geniuses?

I have a curved div created with css3 border radius (the image part). I have text lines next to it that I would like to align 20px or so off the curve, like so (cant post images, cant remember old login): The trick is the curve changes depending on…
7
votes
1 answer

D3 custom curve: bundle interpolation for areas

Consider this D3JS graph which uses a basis interpolation: In D3JS v3, I could use bundle interpolation (.interpolate("bundle").tension(0)) on areas to achieve this type of rendering instead: Notice how each segment of the graph fits nicely with…
Fabien Snauwaert
  • 4,995
  • 5
  • 52
  • 70
7
votes
5 answers

How can I draw smoothed/rounded/curved line graphs? (C#)

I'm measuring some system performance data to store it in a database. From those data points I'm drawing line graphs over time. In their nature, those data points are a bit noisy, ie. every single point deviates at least a bit from the local mean…
ygoe
  • 18,655
  • 23
  • 113
  • 210
7
votes
5 answers

Calculate curvature for 3 Points (x,y)

I have a two dimensional euclidean space. Three points are given. For example (p2 is the middle point): Point2D p1 = new Point2D.Double(177, 289); Point2D p2 = new Point2D.Double(178, 290); Point2D p3 = new Point2D.Double(178, 291); Now i want to…
Spenhouet
  • 6,556
  • 12
  • 51
  • 76
7
votes
2 answers

How to create a level with curved lines with cocos2d + Box2d on the iphone?

I'd like to create a game that has levels such as this: http://img169.imageshack.us/img169/7294/picdq.png The Player moves "flies" through the level and mustn't collide with the walls. How can I create such levels? I found that piece of software:…
KayO
  • 189
  • 2
  • 13
7
votes
1 answer

CSS how to warp/bend an image or div?

Hi, Is it possible to achieve this effect with CSS only? As you can see, the image on top is distorted along with the text inside to look like the one below. It may be a div or an image. I have been researching on transform but found nothing about…
Cain Nuke
  • 2,843
  • 5
  • 42
  • 65
7
votes
2 answers

How to get the x,y coordinates of a offset spline from a x,y list of points and offset distance

I need to make an offset parallel enclosure of an airfoil profile curve, but I cant figure out how to make all the points be equidistant to the points on the primary profile curve at desired distance. this is my example airfoil profile this is my…
efirvida
  • 4,592
  • 3
  • 42
  • 68
7
votes
1 answer

R: Add a curve,with my own equation, to an x,y scatterplot

I want to add a curve with the following equation to an x,y scatterplot: y<-(105+0.043(x^2-54x)). Is it possible within the plot() function? Also, if I use qplot instead (ggplot2) is there a way to draw this curve?
user4631839
  • 83
  • 1
  • 2
  • 9
7
votes
3 answers

How to calculate point along a curve?

I am writing a custom animation for wpf and as a non math guy I have a couple questions... If I am given two Point3D's, the From and To, and assuming the origin is at 0,0,0 how do I calculate a curve between the two points? And once I have the curve…
Nicros
  • 5,031
  • 12
  • 57
  • 101
7
votes
2 answers

Fitting a curve to specific data

I have the following data in my thesis: 28 45 91 14 102 11 393 5 4492 1.77 I need to fit a curve into this. If I plot it, then this is what I get. I think some kind of exponential curve should fit this data. I am using GNUplot. Can someone tell…
The Flying Dutchman
  • 582
  • 2
  • 7
  • 18