Displaying 20 results from an estimated 65 matches for "efficently".
Did you mean:
efficiently
2009 Feb 11
4
Efficent way to create an nxn upper triangular matrix of one's
The code below create an nxn upper triangular matrix of one's. I'm
stuck on finding a more efficient vectorized way - Thanks. --Dale
n <- 9
data <- matrix(data=NA, nrow=n, ncol=n)
data
for (i in 1:n) {
data[,i] <- c(rep(1,i), rep(0,n-i))
}
data
2006 Jun 28
2
[LLVMdev] jump table ?
Is it possible to take the address
of a basic block ?
I'd like to put a whole bunch of these
addresses into an array, and then select
one to branch to. Eg. like a switch statement.
(i'm thinking also of GCC's computed goto's)
I'm finding the code generated by an llvm switch
is a big bunch of compares and jump instructions,
which i'm not sure is the most efficent way of
2004 Nov 11
6
scan or source a text file into a list
I've ported somebody else's rather cumbersome Matlab model to R for
colleagues that want a free build of the model with the same type of I/O.
The Matlab model reads a text file with the initial parameters specified as:
C:\Data\Carluc\Rport>more Params.R
# Number of years to simulate
nYears = 50;
# Initial year for graphing purposes
year0 = 1970;
# NPP/GPP ratio (cpp0 unitless)
fnr =
1998 Sep 23
4
Start and stop the samba server
Is there a good way to stop and restart the samba server...
for example to have it re read the smb.conf, without rebooting the
actual pc?
if I should kill a process should I kill them all ??? if so is there an
efficent way to do this?
thanks in advance
Robert
2006 Mar 08
5
data import problem
...2);
The problem is that read.table closes the connection object, I assumed that it would not close the connection, and instead contines where it last stopped.
Since the data is nearly a simple table I though read.table could work rather than using scan directly. Any suggestions to read this file efficently are welcome (the file can contain several thousand record and each record can contain several thousand rows).
thanks a lot for your help,
+kind regards,
Arne
[[alternative HTML version deleted]]
2006 Mar 02
7
G729 and Meetme
I have noticed that when I try to connect multiple G729 VoIP devices into a MeetMe conference that I can only add up to the number of G729 licenses I have. Now I would think that because all the devices are G729, this wouldn't be the case and the only license that would ever be used would be if a non G729 device or Zap channel was a part of the Meetme conference. This is apparently note the
2012 Mar 09
2
anonymous "on demand" file transfers?
Hello All,
Is it possible to serve up files anonymously via a folder of my choosing
on demand?
>From time to time where I work, we transfer large file heirarchies between
co-workers and contractor workstations, and we've gotten away with tar'ing
things up or using something like webfs (or Python -m SimpleHTTPServer) on
one end and 'wget -r http://remote-server' on the the
2007 Nov 10
7
How to more efficently read in a big matrix
Dear list,
I need to read in a big table with 487 columns and 238,305 rows (row names
and column names are supplied). Is there a code to read in the table in
a fast way? I tried the read.table() but it seems that it takes forever :(
Thanks a lot!
Best,
Allen
2006 Apr 27
12
Stealing users IP address
Is there a functiaon to take the IP address of person who submits to a
form
example:
<input id="user_ip" name="user[ip]" type="hidden" value="<%=
some_ip_call %>" />
--
Posted via http://www.ruby-forum.com/.
2008 Jul 11
3
data summerization etc...
Hello,
I am trying to do some fairly straightforward data summarization, i.e., the
kind you would do with a pivot table in excel or by using SQL queires. I
have a moderately sized data set of ~70,000 records and I am trying to
compute some group averages and sum values within groups. the code example
below shows how I am trying to go about doing this
pti <-rnorm(70000,10)
fid <-
2006 Jun 25
1
Sorting ferret results by column
I have the acts_as_ferret plugin installed. Everything searches great,
but I would like to limit the results (i.e. by ''end_date'') and sort them
(by ''end_date''). ''end_date'' is a valid column in my "posts" table.
Here''s the code I have already:
@posts = Post.find_by_contents(params[:query])
params[:query] comes from a form. I
2008 Jul 14
1
Computing row means for sets of 2 columns
Is there a better or more efficent approach than this without the use of t() ?
> (m <- matrix(1:40, ncol=4)) [,1] [,2] [,3] [,4] [1,] 1 11 21 31 [2,] 2 12 22 32 [3,] 3 13 23 33 [4,] 4 14 24 34 [5,] 5 15 25 35 [6,] 6 16 26 36 [7,] 7 17 27 37 [8,] 8 18 28 38 [9,] 9 19 29 39[10,] 10 20 30 40
>
2001 Nov 26
1
rsync-ing compressed archives
Hi there!
I'm quite happily using rsync.
There is only one case where I couldn't figure out how to use it
efficently:
I sometimes have large compressed files (either .tar.gz or .zip) that
I need to keep synchronized. The exploded files are usually not
available on the machines i use for rsync (to keep everything unpacked
would mean wasting a lot of space on the server).
The problem is that even if I change slight...
2006 Jun 28
0
[LLVMdev] jump table ?
On Wed, 28 Jun 2006, Simon Burton wrote:
> Is it possible to take the address
> of a basic block ?
Nope.
> I'd like to put a whole bunch of these
> addresses into an array, and then select
> one to branch to. Eg. like a switch statement.
> (i'm thinking also of GCC's computed goto's)
llvm-gcc supports gcc's computed goto's. You can see what code it
2004 Sep 21
3
how to take this experiment with R?
How about:
x <- data.frame(matrix(rnorm(1550),c(50,31)))
model <- step(lm(x[,1] ~ as.matrix(x[,2:31])))
--Matt
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of rongguiwong
Sent: Monday, September 20, 2004 20:52 PM
To: r-help at stat.math.ethz.ch
Subject: [R] how to take this experiment with R?
This message uses
2006 Aug 24
1
Using a 'for' loop : there should be a better way in R
I need to apply a yearly inflation factor to some
wages and supply some simple sums by work category. I
have gone at it with a brute force "for" loop approach
which seems okay as it is a small dataset. It looks
a bit inelegant and given all the warnings in the
Intro to R, etc, about using loops I wondered if
anyone could suggest something a bit simpler or more
efficent?
Example:
2003 May 12
1
Processor
...en the different families of processor.. and so you should be able to achieve a comparible performance using a Celeron processor at a far cheaper price..
The fault in my thinking may come in the voice compression/decompression and transcoding area where a Celeron may not be able to buffer the data efficently in which case a P4 would probably be all that is required..
I don't see the need to go to a Xeon.. based on the large price difference for a Xeon system vs a P4/Celeron system..
What are your thoughts??
--
______________________________________________
http://www.linuxmail.org/
Now with e-ma...
2008 Jul 11
1
data summarization etc...
Hello,
I am trying to do some fairly straightforward data summarization, i.e., the
kind you would do with a pivot table in excel or by using SQL queires. I
have a moderately sized data set of ~70,000 records and I am trying to
compute some group averages and sum values within groups. the code example
below shows how I am trying to go about doing this
pti <-rnorm(70000,10)
fid <-
2010 Aug 21
2
t.tests on a data.frame using an apply-type function
...= "B" & x$status =="D",]$X2, x[x$site == "B" & x
$status =="L",]$X2)
t.test(x[x$site == "C" & x$status =="D",]$X2, x[x$site == "C" & x
$status =="L",]$X2)
etc...
I know I must be able to do this more efficently using a loop and one
of the apply functions, e.g. something like this:
k=length(levels(x$site))
for (i in 1:k)
{
site<-levels(x$site)[i]
x1<-x[x$site == site, ]
results[i]<-apply(x1, 2, function(x1) {t.test(x1[x1$status == "D",],
x1[x1$status == "L",])})
results
}...
2016 Nov 18
1
Good email client to use with Dovecot?
* lists at lazygranch.com <lists at lazygranch.com>:
> So does mutt suck or not?
If you work with vi and like it, chances are you will also like mutt.
Personally I *love* mutt! No extra fat. Always on the spot. It is "liberal in
what it receives and conservative in how it sends". Since it is command line
program, I can run it almost everywhere.
It supports local mailboxes,