Displaying 20 results from an estimated 3000 matches similar to: "array searches"
2007 Feb 16
0
re : array searches
Hi,
I am not sure to get the issue, but assuming your data are arranged as
in your example with dates in column x$V1 and signals as x$V2 ,
I think that you could use "rle" in the following way :
test<-rle(x$V2)
testmat<-matrix(NA,length(test$values),2)
testmat[,1]<-x[c(1,cumsum(test$length)[1:(length(test$values)-1)]+1),1]
testmat[,2]<-test$values
And you'll get your
2008 Jul 02
5
multiplication question
folks,
is there a clever way to compute the sum of the product of two vectors such that the common indices are not multiplied together?
i.e. if i have vectors X, Y, how can i compute
Sum (X[i] * Y[j])
i != j
where i != j
also, what if i wanted
Sum (X[i] * Y[j] * R[i, j])
i != j
where R is a matrix?
thanks,
murali
2007 Mar 16
1
cumsum over varying column lengths
Folks,
I have a matrix of historicalReturns, where entry (i, j) is the daily return
corresponding to date i and equity j. I also have a matrix startOffset,
where entry (1, k) is the row offset in historicalReturns where I entered
into equity k.
So we have that NCOL(startOffset) = NCOL(historicalReturns).
Now I would like compute for each column in historicalReturns, the
cumulative return
2019 May 15
2
Require support to use LLVM's PDB classes and pdbutil
Hello,
I'm trying to parse debug information out of PDB files that's created by
visual studio, and also maybe producing stacktrace on linux.
Does anyone has leads to how I can do that with LLVM's pdbutil? Or point me
to a documentation about that?
Thanks.
Experian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2019 May 15
1
Require support to use LLVM's PDB classes and pdbutil
I'd start with reading the documentation about PDB file format, described
here: https://llvm.org/docs/PDB/index.html
There's a lot there, but if you want to interpret the contents on your own
(even using LLVM's PDB libraries to do the low level work) you're going to
need to understand it.
Once you have a basic understanding of what goes into a PDB file and how
it's
2007 Feb 13
2
Computing stats on common parts of multiple dataframes
Folks,
I have three dataframes storing some information about
two currency pairs, as follows:
R> a
EUR-USD NOK-SEK
1.23 1.33
1.22 1.43
1.26 1.42
1.24 1.50
1.21 1.36
1.26 1.60
1.29 1.44
1.25 1.36
1.27 1.39
1.23 1.48
1.22 1.26
1.24 1.29
1.27 1.57
1.21 1.55
1.23 1.35
1.25 1.41
1.25 1.30
1.23 1.11
1.28 1.37
1.27 1.23
R> b
EUR-USD NOK-SEK
1.23 1.22
1.21 1.36
1.28 1.61
1.23 1.34
1.21 1.22
2018 Aug 09
2
Re: Mount URL as cdrom/iso KVM/QEMU
Resolved this morning,
the issue is that the qemu-kvm-ev rpm's released by centos have not been compiled with curl support, I rebuild it myself from source with curl support and it works fine now.
Thanks you for your input everyone.
________________________________
From: Vasiliy Tolstov <v.tolstov@selfip.ru>
Sent: 09 August 2018 10:32:07
To: Inception Hosting
Cc:
2020 Jun 19
2
Inclusive language in LLVM: can we rename `master` branch?
On 19/06/2020 12:56, Renato Golin via llvm-dev wrote:
> I never associated any of those words with their negative
> connotations, either, but this is because of my upbringing and some of
> the privileges I enjoy from our broken society.
>
> I always associated the word "master" as reverential, like with
> martial arts, Jedi kind of thing. And to me, "white"
2008 Sep 18
0
Ocfs2-users Digest, Vol 57, Issue 14
I think I might have miss understood where it is failing, has this file
been added to the DB on the web site or does it fail when you try to
onfigure this?
Carle Simmonds
Infrastructure Consultant
Technology Services
Experian UK Ltd
__________________________________________________
Tel: +44 (0)115 941 0888 (main switchboard)
Mobile: +44 (0)7813 854834
E-Mail: carle.simmonds at uk.experian.com
2006 Jan 28
1
Method for returning a random date between two dates
Hi,
I''m trying to create a method to return a random date within a range.
So far, I''ve come up with this...
require ''parsedate''
def random_date (a, b)
adate = ParseDate.parsedate(a)
bdate = ParseDate.parsedate(b)
atime = Time.local(*adate)
btime = Time.local(*bdate)
atime + (rand * (atime - btime) )
end
...and it doesn''t seem to
2007 May 27
1
Problem while working with SPSS data
Dear all R users,
I got a strange problem while working with SPSS data :
I wrote following :
library(foreign)
data.original = as.data.frame(read.spss(file="c:/Program Files/SPSS/Employee
data.sav"))
data = as.data.frame(cbind(data.original$MINORITY, data.original$EDUC,
data.original$PREVEXP, data.original$JOBCAT, data.original$GENDER))
colnames(data) = c('MINORITY',
2018 Aug 09
2
Re: Mount URL as cdrom/iso KVM/QEMU
Just a quick correction and apologies, the actual issue is that http will not work, https will so I dont think this is a bug as such I think this is by design likely for security.
Looking at the man page for qemu-kvm it states http will work with examples given however only https works, my best guess from looking at the spec file from the srpm is that it has only been enabled in the centos
2014 Oct 03
2
mpi.h errors on Mavericks packages
Dear mac folks,
I have started porting a large legacy toolset maintained in windows
and heavily mpi laden so it can be used across platforms in R... so I
am building a package out of it. On this note, I am noticing that
almost all of the mpi dependent packages do not compile on the CRAN
repositories.... with the basic issue that it appears it can not find
mpi installed:
configure: error:
2018 Aug 09
1
Re: Mount URL as cdrom/iso KVM/QEMU
Hi Daniel,
I have noticed that it will fail exactly as you said if <cdrom> is first in the boot order, if <hd> is first in the boot order the XML validates and it starts as usual.
first in log except below is with cdrom set to first in boot order, second is with hd set first.
2018-08-09 11:39:28.625+0000: starting up libvirt version: 3.9.0, package: 14.el7_5.6 (CentOS BuildSystem
2005 Aug 19
2
Speex, ACELP, G.729
Hello Jean-Marc:
I've been watching the speex development from its inception because I
and several Tech Startup Connection members have a very important
application for this voice encoding/decoding. Further, we are quite
familiar with ACELP as implemented in G.729. As far as I know Speex
is also ACELP ... yes/no?
Question ... what do you see as the advantages of ACELP compared to
MP3? I
2017 Nov 16
2
Log rotation and combining...
I have recently noticed that my dovecot-deliver.log is huge and wanted to start rotating it. So a couple of questions:
1. Can the dovecot-deliver.log be combined with the maillog, that gets rotated weekly? If it can be done, is it advisable?
Since the inception of this particular server, the log file has been located in the /home/vmail directory. Is there a reason it shouldn?t be located in
2016 Feb 07
3
"upstream testing"??
[Follow-ups set to gmane.linux.centos.general]
My wife had been running CentOS 6.4 almost since
its inception; then her PC broke down.
We got a PC from System76, and Ubuntu turned out
utterly unsuitable for us, as expected -- as bad
for us as Gnome3. (I had previously bought a System76
net book (starling iirc), and immediately installed the
then current Fedora; all has been
2010 Sep 20
1
Should a Gem's dependencies be listed in the parent app's Gemfile?
I am working on a Gem that has several Gem dependencies of its own.
The Gem''s .gemspec looks good (I think) and when "bundle install" is
called from the parent app, it lists that it is indeed "Using" the
Gem''s required Gems. I''ll refrain from an Inception analogy here ;)
When I fire up the app and make a request, I get "uninitialized
constant
2017 Nov 17
2
Log rotation and combining...
That doesn?t seem to work either. Where do I find logs for log rotation to see the reason it failed?
Ethon
> On Nov 16, 2017, at 7:53 PM, Bill Shirley <bill at KnoxvilleChristian.org <mailto:bill at KnoxvilleChristian.org>> wrote:
>
> I believe you need a 'create' statement to set the permissions. Here
> is an example for mariadb:
>
2002 Dec 10
2
OpenSSH 3.5p1 and BSM for Solaris
Can someone help me get BSM working with Solaris 8 and OpenSSH 3.5p1?
I saw the patch here for OpenSSH 3.4p1, but do not know how to apply it to OpenSSH 3.4p1 nor do I feel comfortable modifying to work with OpenSSH 3.5p1:
openssh-unix-dev at mindrot.org
Is this patch needed to fix the BSM crontab issue only, or is it required for BSM auditing in general?
Jeff