Questions tagged [curves]

129 questions
0
votes
1 answer

How to create a mathematical curve (probably just an image) in C/C++

Pretty much the title explains what I try to achieve. Having a set of points in two dimensions, I want to create somehow the curve tha passes from all these points. Whether it will be a graphical window with the mathematical curve or just a jpg…
George Kastrinis
  • 4,924
  • 4
  • 29
  • 46
0
votes
2 answers

Finding Intersection points using array, linspace and IF

I am plotting two equations against each other, I did this by creating a 2x100 array and a linspace. I have successfully plotted the curves, but I don't know how to find the values (of u and c) that they intersect at? I have tried intersect(,),…
0
votes
2 answers

Interpolating graph in gnuplot

Im trying to plot a graph in gnu plot using this command plot 'temp.txt' using 1:3 title 'humidity' with lines smooth csplines, 'temp.txt' using 1:2 title'temprature' with lines smooth splines but the curves are not smooth enough as you can…
Khaadija
  • 46
  • 5
0
votes
1 answer

CSS cogged right border

Having the situation described in this image, I need to find solution for such a border using CSS-only, if it is possible. The height is not fixed, it can be variable. And the border should start and end like it is shown. And there is a border for…
0
votes
1 answer

How can I use curves to bend Horizons smoothly?

I have been developing an endless runner game for some time and I wanted it try and make the environment to bend horizon randomly like subway surfaces I download this Horizon Bending asset from the store which works beautifully. In the asset I have…
Ashane Alvis
  • 770
  • 2
  • 18
  • 42
0
votes
1 answer

High bias or variance? - SVM and weired learning curves

I have never seen such learning curves. Am I right, that huge overfitting occurs? The model is fitting better and better to the training data, while it generalizes worse for the test data. Usually when there is high variance, like here, more…
DavidS1992
  • 823
  • 1
  • 8
  • 19
0
votes
1 answer

Curve drawing, not Bezier

As a kid I would draw curves like the red line below, hopefully it is reasonably clear how I have constructed that. I understand that the green line is the quadratic Bezier curve, what is the red line called? Curves
Itch
  • 11
  • 3
0
votes
1 answer

How to calculate control points for a bezier curve with a given implicit function?

I am trying to write a program to draw a bezier curve segment implementing the knowledge from my textbook. I wanted to try making a drawing program to draw something using implicit functions. I want my program to work as follow. user input an…
FunnyFunkyBuggy
  • 495
  • 1
  • 7
  • 21
0
votes
2 answers

Identify curves in binary image

I have a binary image in which I would like to detect curves and output the coordinate pixel positions of the curves. The image is a noisy one and I would like to detect the two curves that run horizontally. I am using MATLAB to perform image…
sundar
  • 59
  • 4
0
votes
1 answer

Finding three intersections of two curves using Python

I am trying to locate the three intersections of two curves. One is v1(u) = u - u^3 and the other is v2(u) = (u-a0)/a1 (where a0 and a1 are some parameters). So far I have managed to figure out how to plot the intersections: import matplotlib.pyplot…
Ohm
  • 2,312
  • 4
  • 36
  • 75
0
votes
1 answer

How do you move an animation curve in maya python?

If I wanted to move it correctly. I would select the whole curve and type *=.42 in the graph editor second box and the whole curve will move up. How do I do this using python. Do I use expression?
cjaxx
  • 33
  • 7
0
votes
1 answer

scikit-learn - How Plotting learning curves for scores related to only one class

I'm working with a binary classification (2 classes: A and B) and I'm interested in plotting the learning curves but only in relation to one of the classes, say B, which is the rare class. Is that possible to be done with scikit-learn? What I've a…
jamesM
  • 3
  • 2
0
votes
3 answers

Detect only one keypress in C++

I'm trying to use the glut framework to handle keypresses for a game I'm writing in c++. When a specific key is pressed, I want to start drawing a new curve and so I create a new curve and add it to my container of curves. However, when I use…
user3802348
  • 2,502
  • 11
  • 36
  • 49
0
votes
1 answer

I used a for loop to draw different curves. But how can I change every line to a different color?

In my draw function I draw everything. I draw the white rect because you can change the position of every curve and otherwise you will see all of them. Not just the one with your new position. function draw() { var canvasWidth = canvas.width; …
0
votes
1 answer

GPUImage failed to init ACVFile with data:(null)

First of all, I must say that GPUImage is an excellent framework. However, when loading an ACV file that I export from Photoshop CS6, it gives me an error saying that: failed to init ACVFile with data:(null). The thing is though, that the same code…
hockeybro
  • 981
  • 1
  • 13
  • 41
1 2 3
8 9