Linked Questions

2 votes
0 answers
335 views

I'm working on an investigation proyect, where I have to plot some experimetal data, and then find the max value (critical point), like on this image: I was trying to adjust a fit curve (using a ...
Francisco Amante's user avatar
1 vote
0 answers
175 views

Suppose you have a group of connected line segments like in the picture below. How can you find a curve to approximate the collection of line segments as shown in the image on the right? This is ...
trent's user avatar
  • 773
6 votes
1 answer
15k views

Suppose I have a hypotetical function I'd like to approximate: def f(x): return a * x ** 2 + b * x + c Where a, b and c are the values I don't know. And I have certain points where the function ...
kirillbobyrev's user avatar
3 votes
1 answer
5k views

My code so far, I'm very new to programming and have been trying for a while. Here I apply the Box-Muller transform to approximate two Gaussian normal distributions starting from a random uniform ...
cj91's user avatar
  • 63
2 votes
1 answer
5k views

I have a function with two input variables we are looking to optimise. The function returns an output and we want to minimise this output. What is the best way to do this in Python? Presently the ...
Admirable-Sun-1263's user avatar
2 votes
1 answer
4k views

As a relative beginner in Python, i'm struggling to understand (and therefore use) the "curve_fit" from scipy.optimize I've tried following answers to previous questions: python numpy/scipy curve ...
Pete Lavelle's user avatar
0 votes
2 answers
3k views

I wish to find the equation of the curve of best fit of the following graph: Which has the equation in the form of: I've attempted to find examples of curve fitting with numpy here and here, but they ...
George Tian's user avatar
6 votes
3 answers
727 views

I'm working on a small program displaying moving rowing boats. The following shows a simple sample code (Python 2.x): import time class Boat: def __init__(self, pace, spm): self.pace = ...
MOnsDaR's user avatar
  • 8,706
2 votes
1 answer
3k views

I currently have a set of data points (hit counts), which are structured as a time series. The data is something like: time hits 20 200 32 439 57 512 How can I fit a curve to this data ...
cheese1756's user avatar
  • 2,049
1 vote
1 answer
1k views

I'm trying to generate a non-linear curve between two integers, let's say 0 and 25 that matches up to this curve here: It seems like a stupid simple problem, the curve I need even looks like part of a ...
Shane Smiskol's user avatar
3 votes
1 answer
684 views

I am trying to fit some data using scipy.optimize.curve_fit. I have read the documentation and also this StackOverflow post, but neither seem to answer my question. I have some data which is simple, ...
user1887919's user avatar
0 votes
1 answer
1k views

I got a numpy.ndarray which is something like np.array([(1, 1), (2, 3), (3, 5), (4, 8), (5, 9), (6, 9), (7, 9)]) I'd like to find a curve-fitting method which can do the following two things. It can ...
haojie's user avatar
  • 783
1 vote
0 answers
1k views

I have some discrete data of the beta spectrum of Bismuth-210, which I would like to try to fit a continuous PDF to so I can improve the accuracy of a simulation I'm building. Is there anything in ...
Adam Tidball's user avatar
-1 votes
1 answer
787 views

I have a data set that I know fits to a curve of the form: y = a x² and I want to extract the value of a. What's the best way to go about this in Python (with scipy etc.) ?
a_c_'s user avatar
  • 15

15 30 50 per page