search for: fff2

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

Did you mean: ff02
2003 Apr 10
1
how to estimate parameters of multimodal distribution
...# making two normals and putting them together x<-seq(5,100,5) y1<-abs(dnorm(x,30,5)+rnorm(20,0,.002)) y2<-abs(dnorm(x,60,10)+rnorm(20,0,.002)) y<-y1+y2 y<-y/sum(y)*100 # *** my data actually look like this*** n<-round(y/sum(y)*100) opt<-optim(c(5,10),fff) matplot(x,cbind(y,fff2(c(5.3,10))),type="l") # quite OK but I need a little bit more general solution fff<-function(p) { p1<-p[1] p2<-p[2] v<-dnorm(x,30,p1)+dnorm(x,60,p2) s<-sum(v) sum((y-v/s)^2) } fff2<-function(p) { p1<-p[1] p2<-p[2] v<-dnorm(x,30,p1)+dnorm(x,60,p2) s<-sum(...
2008 Nov 13
2
decoded sample is completely differen from original one
Hi all, I have just started playing with speex, and come up with the following code, which just encode a frame of 160 shorts, and the decode it. For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a reasonable which depends of values that weren't correctly set? Thanks, Andre #include <stdio.h> #include