search for: smpls

Displaying 3 results from an estimated 3 matches for "smpls".

Did you mean: mpls
2006 May 08
2
On the speed of apply and alternatives?
...e in the last column i have a value that all the preceding values in the same row has to be compared to. I have made the following code : # generate a (1000 x 10001) matrix, testm # generate statistics matrix 1000 x 4: qnt <- c(0.01, 0.05) cmp_fun <- function(x) { LAST <- length(x) smpls <- x[1:(LAST-1)] real <- x[LAST] ret <- vector(length=length(qnt)*2) for (i in 1:length(qnt)) { q_i <- quantile(smpls, qnt[i]) # the quantile i m_i <- mean(smpls[smpls<q_i ] ) # mean of obs less than q_i ret[i] <- ifelse(real < q_i, 1, 0...
2009 Nov 15
2
resampling problem counting number of means above a specific value
I am trying to modify some code from Good 2005. I am trying to resample the mean of 8 values and then count how many times the resampled mean is greater than 10. But my count of means above 10 is coming out as zero, which I know isn't correct. I would appreciate it if someone could look at the code below and tell me what I am doing wrong. Many thanks, Graham > LL<-
2004 May 07
2
Samples inside a packet
Hi, Just to confirm: for blockSizes of 256 and 2048 (0 and 1 respectively) the number of sample inside this audio packet will be acording to table below: LastWind ThisWin Samples 0 0 128 0 1 576 1 0 576 1 1 1024 Correct?? thanks a lot. --- >8 ---- List archives: