Displaying 20 results from an estimated 21 matches for "m_1".
Did you mean:
m1
2010 Jul 02
4
Some questions about R's modelling algebra
...e
I've found so far is the section in "An Introduction to R"
(http://cran.r-project.org/doc/manuals/R-intro.html#Formulae-for-statistical-models).
Does anyone have any other suggestions?
I have a few questions about the definitions given in "An Introduction to R":
* "M_1 : M_2 - The tensor product of M_1 and M_2. If both terms are
factors, then the ?subclasses? factor."
From my reading, the usual interpretation of a tensor product when
x and y are vectors is the outer product. I don't see how that would
work here - how does a matrix work as an predict...
2012 May 23
1
numerical integration
...a = 0.08 # alpha
M <- function(j,s){ return(exp(-j*a*s)) }
# Inner product in $L^2([0,+\oo))$
#
innerProduct <- function(f,g){
integrand <- function(s){ return(f(s)*g(s)) }
return(integrate(integrand,lower=0,upper=Inf)$value)
}
# The 5x5 matrix of the L^2-inner products of $M_1,\dots,M_5$.
#
numericalDotProductMatrix_M <- function(){
A <- matrix(0,5,5)
for(i in seq(1:5))
for(j in seq(i:5)){
f <- function(s){ return(M(i,s)) }
g <- function(s){ return(M(j,s)) }
...
2008 Jul 22
2
F test
Dear R users,
I need to do a F test on the hypothesis that a 2 by 1 vector (X_1, X_2)' has the mean vector (M_1, M_2)'. Specifically, I would like to assume the X vector comes from a bivariate Normal distribution (M, Sigma). Then, given 1000 observations on X, I wanted to test if the means of X agree with the means of the target Normal distribution. Any function or package in R could do such a test? Than...
2006 May 08
1
Speex echo canceller on TI C55 DSP
....m)+(1<<(-a.e-1)))>>-a.e;
>
> in FLOAT_EXTRACT16. This changes the returned value from 0xfc00 to 0x400.
> Now it runs on for a while, then hits another infinite loop at mdf.c line
> 641:
>
> st->power_1[i] =
> FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
>
> I have not had time to trace this, but it looks like a similar problem,
> where the result of MULT16_32_Q15(M_1,r) is negative, and
> FLOAT_DIV32_FLOAT bombs. Maybe the best thing to do next is to instrument
> the routi...
2006 May 02
3
Re: speex echo cancellation limitations
Hi Ted,
Thanks a lot for this analysis.
> In FLOAT_DIVU() it hangs at the following:
> while (a.m >= b.m)
> {
> e++;
> a.m >>= 1;
> }
> for the case where a and b are both zero (yes, division by zero).
> This happens from mdf.c:
True, that needs to be fixed even after I fix the rest.
> leak_estimate =
2012 May 23
0
numerical integrals
...a = 0.08 # alpha
M <- function(j,s){ return(exp(-j*a*s)) }
# Inner product in $L^2([0,+\oo))$
#
innerProduct <- function(f,g){
integrand <- function(s){ return(f(s)*g(s)) }
return(integrate(integrand,lower=0,upper=Inf)$value)
}
# The 5x5 matrix of the L^2-inner products of $M_1,\dots,M_5$.
#
numericalDotProductMatrix_M <- function(){
A <- matrix(0,5,5)
for(i in seq(1:5))
for(j in seq(i:5)){
f <- function(s){ return(M_j(i,s)) }
g <- function(s){ return(M_j(j,s)) }
...
2006 May 09
2
Speex echo canceller on TI C55 DSP
...this place?
>
> The rounding takes the value to exactly 0x8000, and it is followed by a
> right shift, so you just need to avoid the sign extension.
>
> >> I have not had time to trace this, but it looks like a similar problem,
> >> where the result of MULT16_32_Q15(M_1,r) is negative, and
> >> FLOAT_DIV32_FLOAT
> >> bombs. Maybe the best thing to do next is to instrument the routines in
> >> pseudofloat.h which have loops, but I will not get to that for a day or
> >> two.
> >
> > Yeah, r is never supposed to be n...
2006 May 09
2
Speex echo canceller on TI C55 DSP
...second of two brief speech bursts). So, my problem must again be related to
> the 16-bit processing on the C5X DSPs.
Good. At least we've narrowed it down a bit.
> Also, the line where it is hanging is:
> st->power_1[i] =
> FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
Actually, I just found a 16-bit bug in FLOAT_DIV32_FLOAT. Could you
update svn and let me know if it works?
> and it is e that is in the denominator, not r (sorry for the confusion). I
> can now run the simulations side-by-side and...
2006 May 08
0
Speex echo canceller on TI C55 DSP
...return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e;
in FLOAT_EXTRACT16. This changes the returned value from 0xfc00 to 0x400.
Now it runs on for a while, then hits another infinite loop at mdf.c line
641:
st->power_1[i] =
FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
I have not had time to trace this, but it looks like a similar problem,
where the result of MULT16_32_Q15(M_1,r) is negative, and FLOAT_DIV32_FLOAT
bombs. Maybe the best thing to do next is to instrument the routines in
pseudofloat.h whi...
2006 Oct 16
2
Re : Re : Generate a random bistochastic matrix
Yes, you're right. In fact, it's just an adaptation of a matlab command and the author advises using N^4 replications that's why it's the default in the function. The bistochastic matrix is not my subject of interest, but I need it to perform some random tranformation of a vector of incomes.
Florent Bresson
----- Message d'origine ----
De : Richard M. Heiberger <rmh at
2006 May 09
0
Speex echo canceller on TI C55 DSP
...anceled nicely (about 10:1 reduction in the peak amplitude during the
second of two brief speech bursts). So, my problem must again be related to
the 16-bit processing on the C5X DSPs.
Also, the line where it is hanging is:
st->power_1[i] =
FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
and it is e that is in the denominator, not r (sorry for the confusion). I
can now run the simulations side-by-side and look for differences.
- Jim
Le lundi 08 mai 2006 ? 20:05 -0400, Jim Crichton a ?crit :
> > I've just been m...
2006 Oct 16
5
Re : Generate a random bistochastic matrix
Thanks, I tried someting like this, but computation takes times for large matrices
btransf <- function(y,X=length(y)^4) {
N <- length(y)
bm <- matrix(rep(1/N,N^2),N,N)
for(j in 1:X){
coord <- sample(1:N,4,replace=T)
d <- runif(1,0,min(bm[coord[1],coord[2]],bm[coord[3],coord[4]]))
2006 May 10
0
Speex echo canceller on TI C55 DSP
...ond of two brief speech bursts). So, my problem must again be related
> to
> the 16-bit processing on the C5X DSPs.
Good. At least we've narrowed it down a bit.
> Also, the line where it is hanging is:
> st->power_1[i] =
> FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
Actually, I just found a 16-bit bug in FLOAT_DIV32_FLOAT. Could you
update svn and let me know if it works?
> and it is e that is in the denominator, not r (sorry for the confusion).
> I
> can now run the simulations side-by-side...
2008 Aug 06
1
Matrix multiplication
Hi all,
Is there an easy way to do cumulative matrix multipliation in R? What's the syntex? Thanks.
Sincerely,
Yanwei Zhang
Department of Actuarial Research and Modeling
Munich Re America
Tel: 609-275-2176
Email: yzhang@munichreamerica.com<mailto:yzhang@munichreamerica.com>
[[alternative HTML version deleted]]
2006 May 10
2
Speex echo canceller on TI C55 DSP
...problem must again be related
> > to
> > the 16-bit processing on the C5X DSPs.
>
> Good. At least we've narrowed it down a bit.
>
> > Also, the line where it is hanging is:
> > st->power_1[i] =
> > FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->power[i]+10)),WEIGHT_SHIFT+16);
>
> Actually, I just found a 16-bit bug in FLOAT_DIV32_FLOAT. Could you
> update svn and let me know if it works?
>
> > and it is e that is in the denominator, not r (sorry for the confusion).
> > I
> > can no...
2006 May 08
5
Speex echo canceller on TI C55 DSP
....m+(1<<(-a.e-1)))>>-a.e;
> to
> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e;
Is that sufficient to remove all the overflows at this place?
> I have not had time to trace this, but it looks like a similar problem,
> where the result of MULT16_32_Q15(M_1,r) is negative, and FLOAT_DIV32_FLOAT
> bombs. Maybe the best thing to do next is to instrument the routines in
> pseudofloat.h which have loops, but I will not get to that for a day or two.
Yeah, r is never supposed to be negative and the float routines assume
that.
> 1. speex_echo_...
2001 Aug 29
2
Matching Data & Results (Fuzzy-Cluster-Analysis)
Hello,
i use i.e. the cluster-package and the
fanny-object to construct some cluster's and get
the membership'S for every "Person" & Cluster !
My finally problem is to match efficient the data
and the results's togehter in one table!
Until now i use the ODBC-Package and
save both in a access-file and copy them together,
but i can't be sure that the sorting is the
2006 May 08
0
Speex echo canceller on TI C55 DSP
...o remove all the overflows at this place?
The rounding takes the value to exactly 0x8000, and it is followed by a
right shift, so you just need to avoid the sign extension.
>> I have not had time to trace this, but it looks like a similar problem,
>> where the result of MULT16_32_Q15(M_1,r) is negative, and
>> FLOAT_DIV32_FLOAT
>> bombs. Maybe the best thing to do next is to instrument the routines in
>> pseudofloat.h which have loops, but I will not get to that for a day or
>> two.
>
> Yeah, r is never supposed to be negative and the float routines...
2003 Oct 21
2
Denominator Degrees of Freedom in lme() -- Adjusting and Understanding Them
...ne growth model (intercept and slope both have fixed and random
effects), the degrees of freedom seem to be N*T-N-1, where N is total
sample size and T is the number of timepoints (at least when data are
balanced). In the Pinheiro and Bates book (p. 91), the degrees of freedom
are given as m_i-(m_1-1+pi), where m_i is the number of groups at the ith
level, m_0=1 if an intercept is included and p_i is the sum of the degrees
of freedom corresponding to the terms estimated. I'm not sure how the
N*T-N-1 matches up with the formula given on page 91. It seems to me the
number of "group...
2004 Dec 03
3
Computing the minimal polynomial or, at least, its degree
Hi,
I would like to know whether there exist algorithms to compute the
coefficients or, at least, the degree of the minimal polynomial of a square
matrix A (over the field of complex numbers)? I don't know whether this
would require symbolic computation. If not, has any of the algorithms been
implemented in R?
Thanks very much,
Ravi.
P.S. Just for the sake of completeness, a