Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
100 views

I am looking for some advice on how to fit a circular segment to a set of 2D points. My dataset looks like this: 2d data to fit segment to For clarity, my definition of an "optimal" segment ...
Ness Dangerfield's user avatar
6 votes
1 answer
151 views

I'm trying to plot some data with a non-linear fit using the function: kB and Bv being a constant while J'' is the independent variable and T is a parameter. I tried to do this in Python: #Constants ...
Tom291's user avatar
  • 601
0 votes
2 answers
71 views

I am trying to find AUC after fitting a peak and integrating the fit. Following is the code (I am a newbie gnuplot user !^_^!). FILE = 'rdf_1.dat' f(x) = (a/2/d*exp(c**2/2./d**2 + (b - x)/d) * (erf((...
Bussller's user avatar
  • 2,085
0 votes
0 answers
119 views

How can I fit an Erlang mixture to such data via R? set.seed(123) n <- 500 data1 <- rgamma(n / 2, shape = 9, rate = 10) data2 <- mean(data1) + rgamma(n / 2, shape = 5, rate = 5) sample <- ...
yeahman269's user avatar
0 votes
0 answers
38 views

I am familiar with the fitdistrplus package, which offers relevant tool for statistical inferences. Meanwhile, I have trouble to understand what needs to be done when facing a sample that is left and/...
yeahman269's user avatar
0 votes
2 answers
168 views

I want to do fitting on experimental data and my theory I want to try to find the parameters that fit the same as the theory and experiment do I have to make an algorithm? what algorithm do I use to ...
Tengga Arlan's user avatar
0 votes
1 answer
106 views

I am trying to fit a nonlinear model to empirical data and estimate the model parameters using the minpack.lm::nlsLM function. However, I am encountering difficulty in fitting the model with two ...
Sophie Père's user avatar
2 votes
1 answer
71 views

So this question is based on a biochemical experiment. For those who know a bit about biochemistry it is an enzyme kinetics experiment. I have a dilution series of an activator (a or x) and am ...
Kastroph's user avatar
0 votes
1 answer
75 views

I am working with fuel consumption data received from a sensor, but sometimes the data contains noise (sudden jumps or drops) that makes it inconsistent. My goal is to identify and remove these ...
DPTP's user avatar
  • 21
0 votes
1 answer
97 views

I'm currently working with the skspatial package in Python3. I currently have two functions: skspatial.objects.Cylinder.best_fit to try to best fit the points into a cylinder A function that returns ...
CRoemheld's user avatar
  • 947
2 votes
0 answers
117 views

I'm trying to fit a log-logistic distribution (truncated) with GAMLSS and can't find how to do it. In the documentation, it says that for Generalized Beta 2 (GB2) : Setting ν = 1 and τ = 1 in (15.20) ...
Fr4nck's user avatar
  • 21
0 votes
1 answer
99 views

I have 45 years of daily temperature data parsed from a csv file. I was already able to convert the data in terms of years instead of days, and plotted the yearly maximum temperature, yearly minimum ...
Dee's user avatar
  • 109
1 vote
1 answer
66 views

I have data, only discrete data points, and know how the data is distributed, i.e: y = w * gamma.pdf(x, alpha1, scale=scale1) + (1-w) * gamma.pdf(x, alpha2, scale=scale2) How do you accurately infer ...
NiguLas张三's user avatar
0 votes
1 answer
88 views

I am trying to fit functions to histograms using curve_fit from scipy, however a warning occurs when running the program: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import ...
Ani Nalbandyan's user avatar
0 votes
0 answers
117 views

There are many threads on how to detect multiple circles via OpenCV's HoughCircles function, and I understand that this is a complex task with no single good answer. However, maybe someone can give ...
Swift's user avatar
  • 360
1 vote
0 answers
144 views

I've been stuck for one week in this problem and I don't know what function fits better with my data. I've used gnuplot to fit a function to my data. I've tried a lot of combinations of functions, for ...
Raveliux's user avatar
2 votes
1 answer
280 views

We have a point cloud which has points which lie in the same plane. They are distributed similar to the red dots in the image below, we want to fit rectangles denoted by the yellow boxes. These ...
INNA's user avatar
  • 141
1 vote
1 answer
130 views

I have two datasets, both measures of sea level at a particular location. Although these are both measuring sea level, they are measured with different devices and different methods, and thus have ...
hfasullo's user avatar
0 votes
0 answers
233 views

I need to fit data where the data points are not equally distributed. However, the fit uses a convolution. From my understanding for the convolution to work, the arrays need to have the same spacing. ...
Martin 's user avatar
  • 113
7 votes
2 answers
471 views

I want to fit non-negative parameters (xs in the code) to a function fp, given by where v and L are fixed, given parameters. Computing fp can be done relatively quickly by vectorizing it and using ...
sam wolfe's user avatar
  • 111
4 votes
3 answers
438 views

I am trying to fit a set of data to an off-center-circle using python. However, the displacement of the center of the circle (to the center of the axis) is evaluated negative, when it should be ...
Brasil's user avatar
  • 141
3 votes
0 answers
324 views

When trying to do orthogonal distance regression for a linear model, the scipy.odr package fails whenever I hand it errors (in x and y) in array shape (as opposed to scalar). The Error is "...
SCguy's user avatar
  • 21
0 votes
1 answer
47 views

I am trying to get a decay curve fitted to this data to get the values for other distances in R. I have tried a few self-starting models (SSmicem, SSsymp), but these dont seem to appreciate that I ...
ChrisJ's user avatar
  • 1
0 votes
0 answers
127 views

I am a biology student and I am recently learning how to fit ode with observed data in R. I cultivate a microbe under a given condition but with two different initial densities (N0=5 and N0=100), I ...
Myosotis_Li's user avatar
0 votes
0 answers
128 views

#Load weather data data = pd.read_csv(r"C:\Users\slick\Downloads\weather_dataset.csv") #Hot encode data, for columns with information that is not df_weather_processed = pd.get_dummies(data,...
Alex S's user avatar
  • 1
0 votes
1 answer
282 views

Note: A similar question has been asked at the Cross Validated site for the mathematical/theoretical part, as suggested by the community. The question here is mostly about the implementation of the ...
Swike's user avatar
  • 191
0 votes
1 answer
89 views

In this question (exponential fit with ggplot, showing regression line and R^2), there is a nice answer showing how to add multiple models/fits to the data. I would like to add the r-squared and the ...
murpholinox's user avatar
0 votes
2 answers
84 views

I'm working on a project where I need to fit some experimental data to an exponential function using Gnuplot. However, I'm new to Gnuplot and not sure how to do this efficiently. I've been searching ...
supertramp182's user avatar
1 vote
2 answers
88 views

The code worked for one of the datasets but not the other. I receive errors (shown at the bottom of my provided code). You can see that I have two commented out data sections by type: One for work ...
PuppyLord's user avatar
0 votes
2 answers
521 views

My problem seems very simple but I have been stuck on it for a while now. I am simply trying to fit a 2D histogram with a sum of 2D gaussians. As nothing seems to work I went back to basics and am ...
Owen Syrett's user avatar
0 votes
1 answer
114 views

I have two NumPy arrays x_data and y_data. When I try to fit my data using exponential decay function and scipy.optimize.curve_fit with this simple code: import numpy as np from scipy.optimize import ...
impedance_gatto's user avatar
1 vote
1 answer
142 views

I have collected experimental data and have been instructed to perform a fit using a complex chirp function of the following form: def func_M(x, a, x0, tau_p,b): return a*np.exp(-2*np.log(2)*(x-x0)...
Fernando Sánchez Avilés's user avatar
0 votes
2 answers
530 views

I have many datasets which start at a higher y-axis value, then decrease. This happens in traditional S-curve fashion, so it actually looks like a reverse sigmoid. I successfully flipped the y-data so ...
PuppyLord's user avatar
1 vote
2 answers
301 views

I am in the process of fitting a curve to data using scipy.optimize.minimize. To do this, I have defined an objective function which returns either the sum of squared error or the root mean squared ...
Matt J's user avatar
  • 11
1 vote
1 answer
36 views

I have one dataset. df=tibble::tibble( cultivar=rep(c("cv1", "cv2", "cv3"), each = 5L), treatment=rep(c("Control", "Type 1", "Type 2", ...
J.K Kim's user avatar
  • 964
4 votes
2 answers
88 views

I have data that consists of values on dates, here represented as timestamps: json <- structure(list(creation_date = c(1689356840L, 1689366017L, 1689376446L, 1689504809L, 1690366268L, 1690472012L, ...
user avatar
0 votes
2 answers
130 views

I have data that consists of values on dates, e.g. Date Value 2024-02-12 7 2024-02-13 8 2024-02-14 9 I have fit a model to that data and can now calculate the predicted values for a future date:...
user avatar
0 votes
0 answers
173 views

There are questions about finding best-fit p.d.f.s given some data: How to find probability distribution and parameters for real data? (Python 3), https://medium.com/the-researchers-guide/finding-the-...
D.R's user avatar
  • 127
1 vote
2 answers
93 views

I'm trying to make a rather complex fit to a set of data points in python, and after much googling and reading I still have no idea where to start. The data points are datagrey = array([[-260.02020661,...
pamgur's user avatar
  • 93
0 votes
1 answer
894 views

In my data, the first column is the x values, and the second column is the y values. I want to fit the data with a three-parameter Weibull function to describe the distribution. I tried to find ...
FreeAir's user avatar
  • 47
0 votes
1 answer
189 views

I have an implicit function of independent variable sB and dependent variable H with two parameters kV and km, describing an chemical experiment. I tried to fit the experimentally obtained logarithmic ...
Karen Simonyan's user avatar
0 votes
1 answer
209 views

I have two separate distributions given by the functions P_multiple and P_single. I would like to combine the two and into one combined fit function which has a natural "transition" between ...
nyw's user avatar
  • 195
1 vote
0 answers
112 views

Edit: The observational data can be found here. The isochrone or predicted data can be found here. So I'm trying to best fit observational astronomy data to a predicted 'patttern' callen an isochrone. ...
sshamsi's user avatar
  • 11
0 votes
0 answers
210 views

I'm trying to fit 100 data point using 6th order polynomial with Math.NET. I've noticed that the fit results are very much dependant on the chosen method and so I've decided to stick with the Svd ...
stevan1986's user avatar
-1 votes
2 answers
171 views

I plot ellipses using a txt file which consists all parameters (x,y coordinates, major/minor axes, angle of the major axis) and RGB values for each ellipse. Plotting ellipses is the easy part, however ...
Hegmat55's user avatar
1 vote
2 answers
3k views

I am very new to coding and I basically only use it for physics related stuff. I have recently been trying to fit an ellipses with data that I have but I have not gotten any result that resembles the ...
user avatar
1 vote
1 answer
314 views

I have found the parameters that get the best fit to the data using chi squared and the scipy fmin function. I am trying to get the uncertainties on these parameters by finding the values on the chi ...
Bruno Keyworth's user avatar
0 votes
1 answer
245 views

The error lies in the line of myfittype = fittype("A*cos(omega_0*t+phi)",dependent="A" "omega_0" "phi",independent="t",coefficients=["A" &...
stellarskydiver's user avatar
0 votes
1 answer
159 views

I am working on building a script in RStudio which can fit Complex Impedance data of the form Z = a + ib, to model formulas which aim to describe how Z changes with frequency. I have seen for other ...
Kieran's user avatar
  • 27
3 votes
1 answer
424 views

I am currently dealing with some X-Ray data analysis, which in principle could be in principle done with the package PyMca https://www.silx.org/doc/PyMca/dev/index.html. However, I am trying to do ...
Philipp J's user avatar

1
2 3 4 5
18