search for: heavisid

Displaying 2 results from an estimated 2 matches for "heavisid".

Did you mean: heaviside
2004 Jun 23
1
Fitting function with if-clause (nls; e.g. heaviside)
...t to fit a function. The function is e.g.: y = c+m1*x if x<0, c+m2*x if x>=0 where m1, m2 and c is a parameter and x, y are variables of a data frame. I think using nls is appropriate. But I do not know, how to type this formula in nls. Can anybody help? (If there is a possibility to use a Heaviside-function this would be enough.) Karl ___________________________________________________________ Bestellen Sie Y! DSL und erhalten Sie die AVM "FritzBox SL" f??r 0. Sie sparen 119 und bekommen 2 Monate Grundgeb??hrbefreiung.
1999 Nov 18
1
convolve bug?
...n r[k] = sum(i=1,..,n; x[i] * y[k-i]) for k = 1,...,n. There seems to be a typo: shouldn't it be r <- convolve(x,y, conj=TRUE, type="open") or "filter" or whatever 2. x<-seq(1,100) y<-ifelse(x<=50, 0, 1) #y is a discrete unit step or Heaviside function h<-dnorm(x, mean=50, sd=10) # the filter is a Gaussian plot(convolve(y,h, type="open")) #weird points(pnorm(x,mean=50,sd=10)) #what I expected, since convolution with a step is integration The definition of convolution used by Bracewell (p. 32) is out[i-1] = Sum f[j] g[i-...