Displaying 20 results from an estimated 27 matches for "windowsize".
2012 Mar 03
1
Sliding Window in R (solved)
Dear all,
you can find below my solution for sliding a window. Please find below the code for the two alternatives and the benchmarks.
install.packages('caTools')
require(caTools)
do_sliding_for_a_window_duty_cycle <- function(DataToAnalyse, windowSize) {
data<-DataToAnalyse
out <- numeric()
elements<- numeric()
if (length(data[,1]) >= windowSize){
for (i in 1:(length(data[,1]) - windowSize +1 )) {
out[i] <- mean(data[i:(i + windowSize - 1), ])
elements[i]<-length(i:(i + windowSize - 1))
}...
2012 Mar 03
4
Sliding a Window in R
Dear all,
I am having a vector of around 300.000 elements and I Want to slide fast a window from the first element until the last-Windowsize
what I have so far is the following for statement:
for (i in 1:(length(data[,1]) - windowSize)) {
out[i] <- mean(data[i:(i + windowSize - 1), ])
elements[i]<-length(i:(i + windowSize - 1))
}
but this of course takes ages to run, especially with small window sizes!.
I...
2012 Feb 21
2
In R 2.14.1, what does wrong sign in 'by' argument mean?
Here is my code
slidingwindowplotATGC = function(windowsize, inputseq)
{
starts = seq(1, length(inputseq)-windowsize, by = windowsize)
n = length(starts)
chunkGs = numeric(n)
chunkAs = numeric(n)
chunkTs = numeric(n)
chunkCs = numeric(n)
for (i in 1:n) {
chunk = windowsize[starts[i]:(starts[i]+9999)]
chunkG...
2005 Jul 18
1
[PATCH] remove unused encoder buf in sb_celp.[hc]
...==================================
--- libspeex/sb_celp.c (revision 9583)
+++ libspeex/sb_celp.c (working copy)
@@ -272,7 +272,6 @@
st->g0_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
st->g1_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
- st->buf=speex_alloc((st->windowSize)*sizeof(spx_sig_t));
st->excBuf=speex_alloc((st->bufSize)*sizeof(spx_sig_t));
st->exc = st->excBuf + st->bufSize - st->windowSize;
@@ -349,7 +348,6 @@
speex_free(st->g0_mem);
speex_free(st->g1_mem);
- speex_free(st->buf);
speex_free(st->excBuf);...
2003 Jul 27
1
oggenc questions
...in long (>3min) files)?
4 Are there any docs about the psychoacoustic model?
5 Does it compress using two passes (whole file)?
5.1 Is it necessary to use twopass to do "real" VBR (1. pass: estimate BR; 2.pass: compress)?
(ups, this is a general question about VBR)
5.2 Same applies to windowsizes: It has to check the file before choosing optimal windowsizes
Another question that has nothing to do with oggenc:
Are there any compliance test Ogg Vorbis files?
Or any boundary test files (eg:
-full dynamic range
-large codebooks
-plenty of comments)?
<p>Thank you for any informati...
2003 May 25
0
Fitting an ARIMA model to a time series
...tion that the blood pressure will be a value
around a mean of 120 with only minor fluctuations. Only when something goes
terribly wrong it will have a trend up or down.
I now try to predict new values every interval of size 20 with data from a
sliding window of size 100 with the following code:
windowSize <- 100
lagSize <- 5
for(i in 1 : 100)
{
index <- windowSize + ((i-1)*20)
model <- arima(series$series[ ( ( (index-windowSize) + 1) : index ) ],
order = c(2, 1, 1), method = c("ML") )
predictions <- arima.sim(n=5, model = model)
}
The problem is that whatever order I...
2005 Nov 24
2
Source throttling bug, windows->linux
...l 64, id 27854, offset 0, flags [DF], length:
40) server.8001 > source.2225: . [tcp sum ok] 25:25(0) ack 428066 win 164
21:03:59.651984 IP (tos 0x0, ttl 118, id 7095, offset 0, flags [DF], length:
204) source.2225 > server.8001: . 428066:428230(164) ack 25 win 65511
So the server goes from a windowsize of 62k to 164 bytes. Once this happens,
the XP stack only tries sending one packet every 5 seconds.
What would cause that kind of throttling behavior? If I restart icecast it
works for a while, then locks up again.
I've had reports that it happens with windows icecast2 sources as well, but
I...
2012 Aug 23
0
MALDIquant
...2Dextractor in order to convert in mzXML format. I´ve imported this into R with mqReadMzXml function and have followed the suggested flowchart, however when I´m in the step for peak detections I obtained the following error:
peaks <- detectPeaks(spec, SNR = 2)
Error en embed(object@intensity, windowSize) : wrong embedding dimension
Any ideas?
This is the code I´ve used:
> library("MALDIquant")
> library("readMzXmlData")
> spec <- mqReadMzXml("/Users/juane/XML/")
> spec <- transformIntensity(prueba, sqrt)
> movingAverage <- function(y)...
2005 Oct 29
1
***SPAM*** pre-echo preventing
Hi!
Dear all
I compressed an audiu(wave) with libvorbis1.1.1 and found that the pre-echo was longer
than the one which was compressed with MP3 at the same bitrate(128kbps),I am now
confused aboout the pre-echo preventing scheme.
Can you tell me what method does Ogg Vorbis adopt besides the auto windowsize switch?
Looking forward to your letter!
Thank you!
??????? Lisa (^_^)
????????fangchao_dlut@sina.com
??????????2005-10-29
2000 Sep 26
3
anoying debug info + can't login automaticaly
Howdy,
I'm installing openssh 2.2.0p1 on a number of SUNs running Solaris
2.6 but ran into a few problems:
1. whenever I run a remote X11 application and f.i. change the windowsize
I get anoying debug messages like
debug: client_check_window_change: changed
This is a problem since I want to use openssh in a production environment.
Is there any way to turn these messages off?
2. I used to be able to logon automaticaly from one machine to another
(using ssh 1....
2007 Feb 28
5
What is happening here?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi readers of this list,
I have this nasty problem, that looks fixed, but everytime something
else annoying happens...
- From SuSE10.0, there are problems with browsing LAN, due to
susefirewall, was said...and partialy this is true..
All kind of strange things, incompatibilities, or bugs, keep me from
just browsing shares in the network...
I filed a
2005 Nov 13
0
Source throttling bug, windows->linux
...l 64, id 27854, offset 0, flags [DF], length:
40) server.8001 > source.2225: . [tcp sum ok] 25:25(0) ack 428066 win 164
21:03:59.651984 IP (tos 0x0, ttl 118, id 7095, offset 0, flags [DF], length:
204) source.2225 > server.8001: . 428066:428230(164) ack 25 win 65511
So the server goes from a windowsize of 62k to 164 bytes. Once this happens,
the XP stack only tries sending one packet every 5 seconds.
What would cause that kind of throttling behavior? If I restart icecast it
works for a while, then locks up again.
I've had reports that it happens with windows icecast2 sources as well, but
I...
2011 Jan 01
1
Bug#608574: [PATCH] updated rules for dnsmasq
Package: logcheck
I'm running dnsmasq-2.52 on a Gentoo Linux server, and the default rules
for dnsmasq needed a few minor updates.
See attached patch for suggested changes.
Here are the relevant log lines:
Jan 1 12:07:11 hq dnsmasq-dhcp[4093]: DHCPNAK(eth0) 192.168.20.107
00:26:37:a0:75:57 wrong server-ID
Jan 1 12:28:39 hq dnsmasq-dhcp[4093]: DHCPNAK(eth0) 192.168.20.107
2006 Dec 21
0
enabling anonymous login
Hi.
I've set up Samba 3.0.24d on FreeBSD 6.1 and I have a problem that I can't
login anonymously into it (and I suspect that's the reason why windowses
can't browse network):
# smbclient -L black -N
Anonymous login successful
Domain=[WRKGRP] OS=[Unix] Server=[Samba 3.0.23d]
tree connect failed: NT_STATUS_LOGON_FAILURE
I've googled around much and all I've seen on this
2007 Jun 05
0
Only 3/4, 1/2 or 1/4 transfer speed of the theorethical
Hi All,
I finally decided to contact you.
This problem bothers me for at least 5 years.
I use Debian Linux-es with 2.6.16 - 2.6.19 kernels.
Our computers on 100 MBit ethernet network. As we connect two windowses
(XPs) they can transfer 9-10 MByte/s. That's the the theoretichal max.
In the past when one side was linux the max speed was 7.5 MByte/s
(This is the 3/4).
When we connected two
2003 Oct 09
0
Vorbis plugin for RealOne Player
...s first. Make sure decode is ready */
_vorbis_block_ripcord(vb);
oggpack_readinit(opb,op->packet,op->bytes);
/* Check the packet type */
if(oggpack_read(opb,1)!=0){
/* Oops. This is not an audio data packet */
return(OV_ENOTAUDIO);
}
/* read our mode and pre/post windowsize */
mode=oggpack_read(opb,b->modebits);
if(mode==-1)return(OV_EBADPACKET);
......
...
..
}
<p>The access violation is occuring in the oggpack_read() func and it is
because the backend_lookup_state pointer (b) is null. There should be some
check to see if the pointer is null...
Ple...
2005 Jun 25
0
Performance of Route Hat
Hello guys,
normally, I try to avoid advertising my linux distribution in non-commercial
mailing lists (even though it''s 100% open source), but yesterday''s story amazed
me so much that I simply have to.
What happened yesterday? My largest customer switched from multiplexed DSL-Lines
(copper) to optics, and I did some quick measurements on the performance of
Route Hat.
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...tate*)speex_alloc(sizeof(EncState));
st->stack = NULL;
#else
st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
st->stack = ((char*)st) + sizeof(EncState);
#endif
if (!st)
return NULL;
st->mode=m;
st->frameSize = mode->frameSize;
st->windowSize = st->frameSize*3/2;
st->nbSubframes=mode->frameSize/mode->subframeSize;
st->subframeSize=mode->subframeSize;
st->lpcSize = mode->lpcSize;
st->gamma1=mode->gamma1;
st->gamma2=mode->gamma2;
st->min_pitch=mode->pitchStart;
st->max_pitc...
2009 Nov 12
0
Cannot browse the network on a multiple vlan configuration.
Hello everyone.
I'm trying to set a up a wins and a browser on my residential student network.
The network and my current configuration is as follow:
#Network
# .---------------.
# | Samba Server |
# *************** |---------------|
######* Server VLAN *<------| WINS |
# *************** | Domain Master |
#
2007 Dec 03
1
How to make "Add permission" for folder in system with ntacl support? Part 2
Hello.
Sorry I didn't post it under the "how to make..." email - I didn't
received it - I only found it in archives. But I think we both mean the
same.
All this below regards samba on debian etch: 3.0.24-6etch4
I have a share on partition mounted with acl (options=acl,...). As you
know I can locally on server add another ACL entries on files in that
folder. When I connect with