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
-1
votes
5 answers

How to add weighting curve to random selection

I want to have a function which returns a random number between 2 given values. The problem, is that I want it to always "prefer" the lower values over the higher values, going up in a sort of "curve". So, say I give it numbers 100 and 1000, it…
pingu2k4
  • 956
  • 2
  • 15
  • 31
-1
votes
1 answer

How to make a line for the density of the distribution of my data in matlibplot (Python)

How can I make a figure like the following one but with flat curve using matlibplot in Python?
user3476791
  • 1,072
  • 1
  • 9
  • 14
-1
votes
2 answers

Matlab : Intersect point of curves

Say for example I have data which forms the parabolic curve y=x^2, and I want to read off the x value for a given y value. How do I go about doing this in MATLAB? If it were a straight line, I could just use the equation of the line of best fit to…
james.sw.clark
  • 357
  • 1
  • 8
  • 20
-1
votes
1 answer

How to plot a curved line in MATLAB using a set of points

I'm trying to draw ROC curves using an existing set of values using the following command plot(X1,Y1,'--rs',X2,Y2,'-*g'); Where X1,Y1,X2 and Y2 are matrices that have the same size However, the lines produced by this command are straight ones. How…
-1
votes
2 answers

Chart Component C#.NET

I've managed to draw a bezier curve using Chart Control in C#.NET. However, there is 2 points on the curve that is drawn wrongly. I've tried many ways around that but was unsuccessful. The highlighted area should not drop below the x-axis, it should…
Ahmed Mohamed
  • 403
  • 2
  • 12
  • 20
-1
votes
2 answers

How to fill an area using narrow parallel lines

I would like to exploit something like the "polygon" function to fill the area under a curve but I don't want to use colors but narrow parallel lines (better if oblique). Is that possible?
Davide Passaretti
  • 2,741
  • 1
  • 21
  • 32
-1
votes
1 answer

plotting from a loop in matlab

I get some strange problem in my matlab code, this is a part of my code: for k=1:length(box11) num_pts1(k)=sum(length(find(box11(:,k)>0))); size1=sum(length(find(box11(:,:)>0))); …
PLS
  • 15
  • 1
  • 5
-1
votes
1 answer

curve drawing with Cocos2D for iPhone

I'm making a simple game using Cocos2D. The user can touch and trace a path for small moving objects. The objects then follow the path. This is similar to the Flight Control game mechanic. how i can move the object like that.please help me to get…
Appsunic
  • 192
  • 1
  • 10
-1
votes
2 answers

Plot R, curve smooth

In a plot with points, I also have some curves. I used the curve function to get the exponential function in: curve (fishA$parameterB * (x ^ fishA$parameterAlpha), from = 50, to = 80, n = 100, add = TRUE) The curve isn't smooth. How do I…
Marnix de Zeeuw
  • 61
  • 1
  • 1
  • 4
-2
votes
3 answers

How to check whether the curve is C1 class?

How to check whether the curve is C1 class or C2 class. Example: x = [1,2,3,4,5,6,7,8,9 ......1500] y = [0.56, 1, 12, 41, 01. ....... 11, 0.11, 3, 23, 95] This curve is C1 class "function" ? Thank you very much.
flatronka
  • 1,061
  • 25
  • 51
-2
votes
1 answer

Why is G3 continuity only achievable between two edges?

Why is G3 continuity only achievable between two edges? For example, curve 1/2/3, 4/5/6, 7/8/9, 10/11/12 are all G3 continuous. The center surface is built with G3 constraint on edge 5/2. Since curve 1/2/3, 4/5/6 are G3 already, how come edge 8/11…
June Wang
  • 499
  • 2
  • 6
  • 20
-2
votes
1 answer

how to calculate airfoil thickness using coordinate with python

so far I have an airfoil file, S823, which has following coordinates. 1.000000 0.000000 0.996260 0.000570 0.985390 0.002590 0.968200 0.006440 0.945590 0.012020 0.918230 0.018900 0.886490 0.026690 0.850640 0.035270 0.811260 …
Runkun Miao
  • 335
  • 1
  • 3
  • 14
-2
votes
1 answer

Learning Curve with accuracy score . Overfitting?

Model overfitting ? The training score = 1 for different count of training examples (metrics - accuracy)
user4629038
  • 89
  • 1
  • 7
-2
votes
1 answer

intersection of interpolated line and an interpolated curve matlab

I have astraightline with the following data xinter=[1.13 1.36 1.62 1.81 2.00 2.30 2.61 2.83 3.05 3.39] yinter=[0.10 0.25 0.40 0.50 0.60 0.75 0.90 1.00 1.10 1.25] and I want to find the intersection with a result of an interpolated data of a curve…
user183060
  • 13
  • 5
-2
votes
1 answer

Approximate the Function for a Family of Curves based on Linear Regression

R: df looks like this (x = a, y = b, group = c): a b c ------------------- -2.1 1203 5 1.4 1103 10 -2.1 1203 5 .. .. .. I created a scatterplot with around 10 linear regression lines (ggplot2/geom_smooth)…
Max
  • 397
  • 5
  • 15
1 2 3
86
87