Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: Fitting step function
Posted:
Oct 13, 2011 3:09 AM


On 12Oct2011 09:44, premiumxy wrote: > Hello, > > I have the following problem: I have a set of data about some phase information of a signal. At certain points there is a clear step of 180 degrees. These "certain points" might be due to phase wrapping and can be caused by the discontinuity in the arctan function. Perhaps, worth at least looking at before going in further with your problem. > > I would like to fit this data to find the xcoordinates of these steps. I have the feeling that "normal" stepfunctions in Mathematica (such as UnitStep, HeavisideTheta, Sign...) are not varied in the fitroutines (such as NonlinearModelFit). I guess it this is caused by the functions not being continuous. > > I would appreciate any hints for this quite simple (?)problem. The only option that I can currently see is to create a "steplike" continuous function such as Tanh[A x] (with A>>1) > > Thanks! > Best regards :)



