Displaying 20 results from an estimated 6000 matches similar to: "Double And average a vector"
2012 Mar 10
2
Window on a vector
Dear all,
I have a large vector (lets call it myVector) and I want to plot its value with the logic below
yaxis<-myVector[1]
yaxis<-c(xaxis,mean(myvector[2:3])
yaxis<-c(xaxis,mean(myvector[4:8])
yaxis<c(xaxis,mean(myvector[9:16])
yaxis<c(xaxis,mean(myvector[17:32])
this has to stop when the new ..... yaxis<c(xaxis,mean(myvector[1024:2048]) will not find the correspondent number
2005 Nov 29
3
Reclassifying values within a vector to several other values
Dear List
Apologies for such a simple question:
I have a vector of 738 elements, coded with values between 1 and 16 (but
not containing 7, 10, 11 or 13) and wish to recode value 14 to 1, 4 to 2, 1
to 3, 2 to 4 and all other values to 5. I've been trying to use the
replace function (in base) and %in%, but without success.
Many thanks
Roy
2013 Sep 06
4
About de Bruijn sequences in bitmath.h
Found this code: ftp://ftp.samba.org/pub/unpacked/ntdb/lib/ccan/ilog/ilog.c
Tests show that it's faster to use the following code in FLAC__bitmath_ilog2_wide():
static const unsigned char DEBRUIJN_IDX32[32]={
0, 1,28, 2,29,14,24, 3,30,22,20,15,25,17, 4, 8,
31,27,13,23,21,19,16, 7,26,12,18, 6,11, 5,10, 9
};
FLAC__uint32 v;
int m;
2010 May 21
7
Provider API versioning
Hi folks,
Wondering whether I can get a quick show of hands from those of you who use
OpenLayers. The latest version of the API has some refinements for adding
the OSM layers which it would be good to take advantage of. If anyone who
uses OpenLayers is planning to upgrade from Mapstraction v1 to v2 would it
be acceptable to have to upgrade OpenLayers too? That''s assuming you
2002 Jul 20
3
Vorbis 1.0 spec notes, part 1
I have undertaken a small project of writing a Vorbis decoder
completely from the spec, with the goal of catching any errors, both
typographically and algorithmically, in the spec. My "reference"
decoder is also being written in an extremely methodical style, with
practically no algorithmic optimization, such that it will be clear
that every step has been copied exactly from the spec.
2002 Nov 07
4
Preferable contrasts?
Dear all,
I'm working with Cox-regression, because data could be censored.
But in this particular case not.
Now I have a simple example: PRO and PRE are (0,1) coded.
The response is not normal distributed.
We are interested in a model which could describe interaction.
But my results are depending strongly in the choose of the contrast option.
It is clear that there is some dependence in
2011 Nov 17
2
read.table with double precision
Dear all I have a txt file with the following contents
1 50.7906430000000 6.06349800000000
2 50.7907380000000 6.06347100000000
3 50.7910810000000 6.06338000000000
4 50.7911890000000 6.06355200000000
I am usind read.table('myfile.txt',sep=" ")
which unfortunately returns only integers and not doubles that are required to store the
50.7906430000000
What can I do to force it
2012 Feb 19
2
installing the package Rcplex
Dear All,
I have difficulty in installing the package of Rcplex. Its description web is at
http://cran.r-project.org/web/packages/Rcplex/index.html
First, I tried
--------------------------------------------------------------------------------------------------
url <- "http://cran.r-project.org/src/contrib/Rcplex_0.3-0.tar.gz";
download.file(url, basename(url),
2010 Jun 14
4
Live Stream Encoding
Hi There,
i want to stream some pictures out of my application using the Theora
codec. I can stream to a socket or a file. The current work based on the
png2theora example. Something while enconding went wrong: I can see the
whole video in VLC, but the complete duration of the file will not be
displayed. If i play the video in Firefox, the first 2 seconds will not
be played. I think the
2011 Apr 18
3
CELT grabbing 100KB of memory right off the top
Is there a particular reason why CELT grabs 100KB of stack immediately?
Is that really required or can that be trimmed down some/a lot?
-a
2004 Jun 13
1
intermittent access this week
Hey team,
I'll be at sea on and off this week, and as such my Internet access will
depend on wifi availability while in port. 22a seems stable, but if any
critical problems arise, feel free to prepare a release and bug Alfie
to upload it.
On the brighter side, I expect to be extremely bored while offline so I'll
probably get some logcheck work done. <:
Cheers,
--
[ Todd J.
2004 Aug 06
5
Ices2 compile error - streaming ogg!
Still trying to stream ogg and have not gotten past a make error in
ices2. We www.freespeech.org are an independent media / news
site so it would be nice to get this running
and support this new format. I'd love to convert all of our 700
streaming video files from from realmedia as well but thats another
story!
Perhaps this is not the correct forum but it seems like there
are a lot of
2002 Sep 18
4
Test files for decoder implementation
Hi,
I am trying to implement a Vorbis decoder in Java, and I have some
problems understanding the file-format specification included with
libvorbis. In the header description, there are a few obvious mistakes,
which I believe to have solved, but when I try to decode the audio
packets, the decoded floor and residue data doesn't seem to make
sense at all, and after a few packets, my decoder
2017 Mar 09
4
[RFC] bitfield access shrinking
In http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20120827/063200.html,
consecutive bitfields are wrapped as a group and represented as a
large integer and emits loads stores and bit operations appropriate
for extracting bits from within it. It fixes the problem of violating
C++11 memory model that original widen load/store of bitfield was
facing. It also brings more coalescing
2007 Dec 06
2
How to repair corrupt ntprinters.tdb?
Hi,
we are using samba 3.0.24 as a printspooler for 80 network printers with
a 500kB ntprinters.tdb for some years now. When we recently restarted
samba we noticed that the ntprinters.tdb automatically shrinked to 24kB
and printing was no longer possible.
tdbdump of the original tdb-file is impossible too:
"Failed to open ntprinters.tdb"
The strange thing about this: we can solve
2017 Mar 09
3
[RFC] bitfield access shrinking
On 03/09/2017 12:28 PM, Krzysztof Parzyszek via llvm-dev wrote:
> We could add intrinsics to extract/insert a bitfield, which would
> simplify a lot of that bitwise logic.
But then you need to teach a bunch of places about how to simply them,
fold using bitwise logic and other things that reduce demanded bits into
them, etc. This seems like a difficult tradeoff.
-Hal
>
>
2017 Mar 09
4
[RFC] bitfield access shrinking
On Thu, Mar 9, 2017 at 10:54 AM, Hal Finkel <hfinkel at anl.gov> wrote:
> On 03/09/2017 12:14 PM, Wei Mi via llvm-dev wrote:
>>
>> In
>> http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20120827/063200.html,
>> consecutive bitfields are wrapped as a group and represented as a
>> large integer and emits loads stores and bit operations appropriate
2004 Aug 06
2
cvs changes
I changed the libshout2 and thread module apis. This broke everything.
If you are tracking CVS, make sure to update your libshout2 and the
thread module. Ices2 and Icecast2 already uses these new changes, which
were implemented as part of general cleanup and getting Solaris builds
out of clean tarballs.
If anyone is having build issues now, on linux or solaris, please let me
know.
jack.
---
2006 Jan 24
1
Fwd: Weird problem opening mbox in beta1/2
Hmm, this is peculiar!
This mailbox has been unchanged on my test server since September. I've
been using it to test each new version of Dovecot just after I've
compiled it.
When beta1 was released, I opened this mbox with no problems. However,
when I upgraded to beta2, I got "file size unexpectedly shrinked in mbox
file /export/mail/a/24/vis99003/INBOX (16895967 vs 16899267)".
2004 Aug 06
1
Ices2 compile error - streaming ogg!
Actually, you don't have to check out ogg and vorbis from CVS. You can
just use Vorbis 1.0, if you like. ices was updated to use the Vorbis
1.0 encoding API, and that is the source of the errors the original
poster was seing.
---
Stan Seibert
<p>On Wed, 2002-07-31 at 15:23, D. Anthony Patrick wrote:
> You need to check out ogg and vorbis from cvs and install them as well. Refer