Questions tagged [curves]
129 questions
0
votes
0 answers
Getting repaint issue while creating parabolic curves using awt in java
Hi I am trying to create parabolic curves using lines in awt java but previous lines are getting removed as soon as some new lines are drawn.
I am using this code in paint method
static int x1 = 0;
static int y1 = 300;
static int x2 = 300;
static…

Bruce_Wayne
- 1,564
- 3
- 18
- 41
0
votes
0 answers
How to find the intersection of two curves?
How do I find the intersection of two curves given by arrays y1 and y2, having the same x values? This is my current code:
import numpy as np
import matplotlib.pyplot as plt
from scipy import optimize
fig = plt.figure()
ax = fig.add_subplot(111)
Ls…

learn_python
- 17
- 1
- 4
0
votes
1 answer
Plotting the mean curve based on multiple curves/dataset in R
I want to estimate an "Average curve" from curves of multiple trials. I have done this before using approx() , but then I had a fixed set of x-axis values against which y was measured.
In this dataset, values are mixed for both x and y (i.e., there…

Shishir
- 11
- 1
- 2
0
votes
1 answer
Drawing a deltoid curve in canvas
https://jsfiddle.net/prew217o/
As you can see ive tried converting the deltoid formula to code but why isnt it working? I wonder what ive done wrong because the formula is the exact same one as in the wikipedia article.
const ctx =…

Asperger
- 3,064
- 8
- 52
- 100
0
votes
1 answer
Lift Charts in R error The y variable must be a two-level factor
I have been trying to make a lift curve from my Logistic Regression but it doesn't seem to work.
Following it the code I have been trying
inTrain <- createDataPartition(y = Data$Response, p = .60, list = FALSE)
training <- Data[inTrain,]
testing <-…

paddy
- 123
- 1
- 2
- 13
0
votes
1 answer
R: How can I plot the average curve of a set of curve using ggplot2 in R
I'm relative new in R language and I'm trying to plot the average of a set of curves, for example in the picture below I have 3 curves and I need to plot the average of the 3 curves. What aproximations can I take to solve this?
Graph
My data is…

Wolkuz
- 83
- 9
0
votes
0 answers
How to fill the area between two independent curves in python?
I am ploting two different lines meaning that each of them have a different list for Y axis values and X axis values. How can I fill the area between them if the X axis values are different?
Let's say I have the lists for every axis for every curve:…

BlueMountain
- 197
- 2
- 17
0
votes
0 answers
How to find when a curve is above another curve
I am trying to identify the points on the graph below where line2 reaches a point above or below line 1. Any ideas on how to do this?
0
votes
1 answer
Can't get curves from FBX
I'm trying to obtain animation curves from fbx file with FBX SDK. I'm trying like it said in FBX docs: http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref__import_scene_2_display_animation_8cxx_example_html . Here's the code:
int…

tester
- 43
- 2
- 8
0
votes
2 answers
Calculating the new position of a parented controller after rotating the parent in Maya using Python
I'm creating code to create a motion path of a controller based on it's keyframed positions in Maya. I've run into a problem when trying to use this code to create a motion path of a parented controller. If I rotate and translate the parent the…

zaidi92
- 355
- 1
- 3
- 11
0
votes
0 answers
Is there some ways to get the features of a curve?
Now, I have a group of data which describes objects' access counts per seconds. According to these data I get the curves of every object as follows.
So I wander how can I get the features of every curve.
For curve A, there is a sharp change between…

Aries_Liu
- 95
- 1
- 10
0
votes
1 answer
joining points with smooth curves in opengl
I have a list of points say
a, b, c and d
that I want to join like
a - b - c - d.
Right now I'm just taking two points at a time and drawing a line between them. But the result is sharp corners. So I thought of joining them with curves so that…

Vishwas
- 506
- 1
- 5
- 20
0
votes
0 answers
Dynamical splines library for C++
i am having a lot of datapoints (e.g: 1000) which display the lanes of the road. I am also getting new Datapoints for the same location (more measurement for same point) and for the next Datapoints. So i am getting the flow of the Datapoints. I want…

Nikolai
- 1
0
votes
0 answers
R - curve() error
This is head of data G
Date Open Close Volume Adj.Close
2016-03-03 718.68 712.42 1958000 712.42
2016-03-04 714.99 710.89 1972100 710.89
2016-03-07 706.90 695.16 2985100 695.16
2016-03-08 688.59 …

r_hudson
- 193
- 8
0
votes
1 answer
Calculate acceleration curve
I need to calculate the position of a view as it travels from point A to point B. There will be an input value that will change linearly, and based on that input value I need to calculate the position of my view. By the end both the input value and…

Mark Bridges
- 8,228
- 4
- 50
- 65