fit

Fitting a gamma distribution with (python) Scipy

Hi folks, Can anyone help me out in fitting a gamma distribution in python? Well, I've got some data : X and Y coordinates, and I want to find the gamma parameters that fit this distribution... In the Scipy doc, it turns out that a fit method actually exists but I don't know how to use it :s.. first, in wich format the argument "data" ...

Power function fit to data set

I have a set of data (in ArrayCollection) and I need to fit a power function { f(x)= B + x^alpha } to it, before display in LineChart. As result I need the alpha and B paremeter. How to do this with Flex? ...

Fit a logperiodic function to data set in flex

I wahnt to fit a function to a data set. The function formula looks like this: http://docs.google.com/fileview?id=0B_6wV4xlS6wCNTA2MzU2MTMtMWMwZC00NzNjLTg1MjktYzc4MzFkOTk5YzJh&hl=en" I fited the power function following this advice: stackoverflow.com/questions/2984164/power-function-fit-to-data-set. I've done it like here: mathworld...

Fitting a binormal distribution in R

As from title, I have some data that is roughly binormally distributed and I would like to find its two underlying components. I am fitting to the data distribution the sum of two normal with means m1 and m2 and standard deviations s1 and s2. The two gaussians are scaled by a weight factor such that w1+w2 = 1 I can succeed to do this u...

How is the intercept computed in the GLM fit ?

Hi! I have been reading the code used by R to fit a generalized linear model (GLM), since the source-code of R is freely available. The algorithm used is called iteratively reweighted least squares (IRLS), which is a fairly documented algorithm. For each iteration, there is a call to a Fortran function to solve the weighted least square...

Multiple items in fit layout in ExtJS

Hi, I have created multiple items in a single panel. Now i want to display this panel in a 'fit' layout. I don't want to fix the height and width for this panel. I know 'fit' layout allows only one item to display. Is it possible to use 'fit' layout here? Or Is there any alternative to achieve this? Thanks, Anandan ...

Fitting a pareto distribution with (python) Scipy

I have a data set that I know has a Pareto distribution. Can someone point me to how to fit this data set in Scipy? I got the below code to run but I have no idea what is being returned to me (a,b,c). Also, after obtaining a,b,c, how do I calculate the variance using them? import scipy.stats as ss import scipy as sp a,b,c=ss.pareto...

Adjusting navigation bar to fit width of screen

I'm experimenting with making horizontal navigation bars. The links are white text within black backgrounds that run together to make it a continuous bar. The width of the bar is defined by setting the width of the elements in the css a{width:number;}. How do I make it so that the bar automatically adjusts to fill the width of the wi...

Power function fit

Hi. I want to fit a power function to a dataset. I'm using this method: http://mathworld.wolfram.com/LeastSquaresFittingPowerLaw.html But the result is not acceptable: b = -0,001901, a = 7,26 My dataset: 8553600 458.2 17193600 373.6 25833600 694.16 34646400 738.33 44064000 817.89 54259200 1040.67 67910400 1032.69 762...

C#: Code to fit LOTS of files onto a DVD as efficiently as possible

I need to write an application that will take a list of files (some large, some small) and fit them onto DVDs (or CDs, or whatever) as efficiently as possible. The whole point of this application is to use up as much of the 1st disc before moving onto the 2nd disc, filling the 2nd disc up as much as possible before moving onto the 3rd d...