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
6
votes
2 answers

Simple Curve Fitting Implimentation in C++ (SVD Least Sqares Fit or similar)

I have been scouring the internet for quite some time now, trying to find a simple, intuitive, and fast way to approximate a 2nd degree polynomial using 5 data points. I am using VC++ 2008. I have come across many libraries, such as cminipack,…
Shawn Tabrizi
  • 12,206
  • 1
  • 38
  • 69
6
votes
3 answers

R plot, x-axis and y-axis touching

My problem concerns the making of a graph for a publication in R. I have used the plot function like follows: plot(x=data$SL, y=data$BD, xlab = "SL (mm)", ylab = "BD (mm)", pch=data$pch) SL ranges from 51.7 to 73.7 and BD from 13.5 to 20.4.…
Marnix de Zeeuw
  • 61
  • 1
  • 1
  • 4
6
votes
1 answer

OpenGL: create complex and smoothed polygons

In my OpenGL project, I want to dynamically create smoothed polygons, similiar like this one: The problem relies mainly in the smoothing process. My procedure up to this point, is firstly to create a VBO with randomly placed vertices. Then, in my…
cafaxo
  • 187
  • 8
5
votes
1 answer

Detecting curves in OpenCV

I am just starting to use OpenCV to detect specific curves in an image. First, I want to verify if there is a curve, and next, I would like to identify the type of curve according to vertical or horizontal convex or concave curve. Is there an…
cmsl
  • 271
  • 2
  • 7
  • 17
5
votes
2 answers

Curve fitting a series of line segments

There are a lot of curve fitting questions on SO but I can't seem to find one that addresses what I'm looking for. The scenario is simple: I capture X/Y points on a tablet screen. I'd like to draw the resulting line segments as a smooth curve…
Muin
  • 1,251
  • 11
  • 8
5
votes
3 answers

Interpolation with bounded curvature

With the code below, I use scipy.interpolate.splprep routine to interpolate a set of points using B-splines. Evidently, this curve in the figure on the left is quite "sharp" near the 6th point: it's curvature is too large (see right figure). I want…
Thomas Wagenaar
  • 6,489
  • 5
  • 30
  • 73
5
votes
0 answers

How to visualize model training history using scikit learn's MLP classifier?

I have used the pima-indians-diabetes.csv dataset. I have built a neural network containing architecture 12-8-1 using Keras and I was able to visualize the training history perfectly. Next, I tried to implement the same model using MLPCLassifier…
5
votes
0 answers

Importing and mapping AutoCAD line segments to Anylogic Paths

I have an excel file containing AutoCAD line data that I wish to map to AnyLogic Path constructs. To do this I am trying to edit the XML file and adding in path objects with the requisite points. The AutoCAD data I have provides a center x,y, start…
user3303925
  • 108
  • 6
5
votes
2 answers

Subdivide Bezier Curves

I want to achieve that I can subdivide a Bezier Curve with a given distance. Now it works if the Bezier is a straight line, but if I change a Controll-Point(B&C) so the Bezier get's curved, the gap between the calculated Points are no more like the…
dan_wipf
  • 141
  • 9
5
votes
1 answer

Nesting parabolic curves from straight lines

I am having trouble replicating the picture for my assignment. I would appreciate any tips or solutions. I believe I have the general idea down, but I am having a hard time figuring out the math to replicate the image and doing everything in a…
5
votes
0 answers

How to get the value of the area under the curve in Javascript using Chart.js

I want to know if there is a easy way to get the value of the area of the curve that I plot using Chart.js. I know that I can use a line chart and fill the area under the curve "line chart with fill option" I just want to know if I can get the value…
JonLord
  • 175
  • 9
5
votes
2 answers

Plot a curve in 3D with Sympy

How to plot the following 3D curve (as an example) using Sympy? I know just create an array for t and do this in Matplotlib, but I don't really want to plot this curve, rather to learn how to define and plot curves symbolically. alpha(t) = (cos(t),…
Mark
  • 672
  • 1
  • 6
  • 19
5
votes
1 answer

Animated curve line in Swift 3

I want to draw some bezier lines and I want to animate them with a wave effect, Example Do you have some ideas about how I can do this ? Bezier line is it the best method to do it ? I found only 2 libs for this, but they are not really useful for…
Badr Filali
  • 279
  • 5
  • 21
5
votes
1 answer

Plot implicit equations

I need to draw some curves in Python3 (I am quite used to matplotlib.pyplot) but I have never drawn such things before and I would really appreciate some tips (especially tips how to code it in a "tidy" way) and help. There is an example (let's use…
Hendrra
  • 682
  • 1
  • 8
  • 19
5
votes
2 answers

How to make geometry follow a curve?

Is it possible to make some sprites/objects to copy itself and bend in a curve? I made an image to show what i mean: Here the curve, possibly a bezier path is green and the geometry is shown in black. I want the sprite or object (on the left) to…
Pietari
  • 83
  • 4