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
0
votes
1 answer

I want to transform from rectangle view to curve view in ios

I want to add label in view. Not rectangle label but curve label. middle point lower with certain rate. Like 'U'. how?? I think using CGContextAddCurveToPoint. but how to use? in ios.
SeoTaiJi
  • 141
  • 1
  • 9
-1
votes
1 answer

Implementing Sigmoid Curves in C++

I've been trying to implement Sigmoid curves since 12 hours ago and i could not manage to get it up. I'm using Microsoft Visual Studio 2010. The formula is y = 1/(1+exp(-e)) Yet when i try implementing in the codes it does not work, why? Can any…
Newbie
  • 145
  • 2
  • 7
  • 23
-1
votes
2 answers

Intersection between two curves

I need to obtain the intersection of two curves. The problem I'm facing can be stated in the following way: Given two curves C1 and C2, defined by N1 and N2 points connected by straight lines, obtain all the intersections of C1 with C2. Both curves…
Jorge Leitao
  • 19,085
  • 19
  • 85
  • 121
-1
votes
0 answers

How to get svg path for a bezier line chart from an array of points?

I have an array of points [[x1,y1],[x2,y2],[x3,y3]...] I am able to render the below Line chart using these points- But I want a smooth curve, something like this- Edit: I tried this solution, but it fails my requirement in some cases. For example,…
-1
votes
1 answer

Plotting Soil Water Retention Curve Using van Genuchten Model

I'm trying to plot a soil water retention curve using the van Genuchten model in MATLAB. I have loaded data from an Excel file and applied the model equations. However, I'm facing %issues with fitting the model to the observed theta values and…
Asegidew
  • 11
  • 1
-1
votes
2 answers

How to draw a curve in Bezier Path?

I'm trying to achieve this design in iOS UIKit: Using bezier path I have completed it but I am unable to achieve the inverted curve from the left side. I'm attaching the code snippet that I use: class ArcView : UIView { override…
-1
votes
1 answer

How do i smoothen out the curve in my plot?

I have these plots, and I would like the curve to be smoother. How can I add that to my code? Thank you! plot(PA_Spe_accum, ci = 1.96, ci.type = "bar", las=1, col = "green3", lty = 1, lwd=2, ci.col = "green3", ci.lty = 1, xlim=c(0,60),…
Anna-Sofie
  • 19
  • 3
-1
votes
1 answer

(R) Curve function: 'expr' did not evaluate to an object of length 'n'

I'm trying to graph a function (from user input) and some of its Taylor Series approximations in R. I'm having no trouble graphing the user's function, but have failed several times trying to graph its approximations. My latest attempt involved the…
manzler.h
  • 9
  • 1
-1
votes
1 answer

How do I increase the axis size on an ROC Curve in R?

How do I increase the axis size in the ROC curve? I have tried this code but I can only increase the label and "AUC:0.9201" sizes. I want to increase the size of the x and y coordinates as well. I have tried this code. # Use the prediction function…
-1
votes
1 answer

How to make two curves to compare between the values of two before and after variables of a dataframe?

I have this dataframe df1 = data.frame(x_before = c(1,2,3,4,5,1,2,3,2,1), x_after = c(2,1,2,3,6,7,2,2,2,3)) and I want to compare between the values of the two variables x_before and x_after using curves. I want them both on the…
Anas116
  • 797
  • 2
  • 9
-1
votes
1 answer

How to use curve function to make lines in R

I want to use curve to make lines for the models below to show each model’s mean predicted WEIGHT across values of AVFOOD. However, I don't really understand the curve function and how to code them. m0.f <- lm(WEIGHT ~ 1, data = foxes) m1.f <-…
-1
votes
1 answer

Using matplotlib need to draw a series of graph of different places in a single graph

I have a dataset in csv and the format is Place X-axis Y-axis A 1 27 A 2 28.33 A 3 24 A 4 34 A 5 39.5 A 6 12.4 A 7 43.67 A 8 33.67 A 9 …
RBS123
  • 47
  • 3
-1
votes
1 answer

Curved text (+animation)

I'm trying to have a banner in the corner of my website with curved and animated (infinite banner style) text inside a responsive div. Something like this: I'm a rookie at programming and also tried doing it with .svg's based on other's examples,…
arihel0
  • 1
  • 2
-1
votes
1 answer

finding an equation of polynom by given point in 3D (python)

Suppose we have a curve which is given by 3D points, for example: (0.43, 0.55, 32.49), (0.61, 0.77, 31.24), (0.77, 1.01, 29.99), (0.88, 1.23, 28.75), (0.93, 1.41, 27.5), (0.91, 1.51, 26.25), (0.90, 1.59, 25), (0.81, 1.60, 23.75), (0.68, 1.58, 22.5),…
-1
votes
1 answer

How to Fit a decay exponential function in Matlab

I have to fit the dots, results of measurements, by an exponential function on Matlab. My profesor asked me to use only fminsearch polyval polyfit One of them or both. I have to find the parameters a and b (the value) which are fitting it. There…