Displaying 20 results from an estimated 5000 matches similar to: "trying to get rid of for loop in simple scenario"
2008 Sep 17
3
Is there a way to not use an explicit loop?
I have a problem in where i generate m independent draws from a
binomial distribution,
say
draw1 = rbinom( m , size.a, prob.a )
then I need to use each draw to generate a beta distribution. So,
like using a beta prior, binomial likelihood, and obtain beta
posterior, m many times. I have not found out a way to vectorize
draws from a beta distribution, so I have an explicit for loop
2009 May 29
1
code optimization problem ... using or not using "which" function
hello all,
I have two data sets that share certain fields of of interest (
facility, unit, date) which I want to match up, and from this extract
information from one dataset and store it in the other.
my first initial idea (which I know is bad) goes like this:
## capacity and new_trayloc are datasets in example code:
for( i in 1: nrow( new_trayloc) {
2009 Apr 13
1
should sub(perl=TRUE) also handle \E in replacement, to complement \U and \L?
Currently sub(perl=TRUE) allows you to specify \U and \L
in the replacement argument so that the rest of the subpatterns
in the line (the \\<digit> things) will be converted to upper
or lower case, respectively. perl also also has a \E operator
to end these case conversions for the rest of the subpatterns
(so they retain whatever case they had in the original text).
For symmetry's sake
2004 Apr 20
20
Cisco 7970
I currently have two Cisco phones, a 7960 and 7970. The 7960 has a SIP OS
on it and the 7970 has a SCCP.
When the 7960 powers up it loads OS79XX.TXT, SIPDefault.cnf,
SIP000E3875266C.cnf, RINGLIST.DAT, and dialplan.xml. I have a Cisco
SmartNet agreement with the phone so I have access to download the firmware.
I recently purchased a Cisco 7970 phone and was in the process of
configuring
2005 Jun 09
2
Is it possible to have a remote Phone work behind Nat without a VPN?
Hi Everyone,
Is it possible to have a SIP Phone work remotely if it's behind a Router
performing NAT without connecting the Router to a VPN? The Asterisk Box
will be in the DMZ.
Thanks
Dan
CYTEXONE
----
Dan Levine
dan@cytexone.com
CYTEXONE | Your Technology Specialists R
877.CYTEXONE x 810
212.477.0990 x 810
212.208.6889 FAX
502 Laguardia Place, Suite 2B
New York, NY 10012
2011 Oct 17
1
lmtp performance
Hello:
In the process of migration from version 1.2 to 2.0 have tried to use
lmtp instead of lda as delivery agent.
But unfortunately througput we get is poor with lmtp compared to lda.
In peak times with lda we are able to deliver over 1800 messages/minute
(high I/O but not affecting service) but if we switch to lmtp cannot
deliver more than 300 mess/minute (very low I/O).
This is enough
2010 Nov 28
2
Lineage 2 Can't start
Hello!! i'm new in this Linux wave, im trying to run Lineage2 in Linux Mint 9 (Isadora) but it can't run, it show me this on the Terminal.
juancarlos at linuxmint /host/Program Files/NCsoft/Lineage II/system $ wine L2.exe
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
err:module:attach_process_dlls "Engine.dll" failed to initialize, aborting
2004 Dec 30
1
A simple scenario
Does anyone know how to setup asterisk up so that 1 home user can dial into
it make and receive calls. I have recently setup an asterisk server, I am a
bit woolly with the VoIP technology and I am not sure what PCI card I would
need. I am a home user using broadband and the company where the server is
installed is also on broadband.
If anyone knows how to setup this scenario, I would much
2011 Dec 05
1
Toggle cASE
Hello R-help list,
I am looking for way to toggle the case of the characters like a flip-flop; that is from ''Hello'' to "hELLO" or vice versa.
I know that there are a number of functions like casefold, tolower, toupper, etc. but these functions change the case in an uniform way.
Thanks in advance,
Antonio Rivero Ostoic
Antonio Rivero Ostoic
PhD Student,
2008 Mar 10
1
y label perpendicular to the y axis
Hi R-users:
We need to place the y label horizontally on a plot.
Instead of
|
l |
a |
b |
e |
l |
|__________
we want
|
|
label |
|
|
|______________
We thank you any advice.
Yours,
Juan Carlos Correa, Ph.D.
Profesor Asociado
Escuela de Estadística
Universidad Nacional-Sede Medellín
2015 Jun 03
1
SIS attachments compressed
Hello:
In case it is defined to use zlib compression, does SIS save attachments
compressed?
I have found this question replied in the past (2012) and the answer was
NO. I ask again just to know if there have been changes or if it is in
the roadmap to add compression.
I have been testing to migrate from maildir+zlib to mdbox+zlib+sis and
the results, in terms of space used, and worst than
2007 Dec 28
4
A simple stand-alone scenario but "public" share doesn´t work
Dear list,
For a simple home-network i recently installed Debian Etch on an extra
machine to act as server. It stores my mail, it acts as
webserver, firewall, dns-, dhcp- and database-server. All of these
services are running like a charm. The only thing left is
to get samba running. Well, it is running, but to get it running how i
want it to is a different matter i suppose, for i am
quite
2015 Jun 18
2
[LLVMdev] Contributing a buildbot for the BPF backend
Thank you.
Alexei just committed the change to SVN.
Regards,
Marco Leogrande
Sent by a carbon-based life form; hence, it may contain repetitions,
inaccuracies, logical fallacies and repetitions.
On Wed, Jun 17, 2015 at 2:52 PM, Galina Kistanova <gkistanova at gmail.com> wrote:
> LGTM.
> Please commit.
>
> Thanks
>
> Galina
>
> On Tue, Jun 16, 2015 at 8:32 PM,
2015 Jun 17
2
[LLVMdev] Contributing a buildbot for the BPF backend
Galina,
thanks again for your help.
I have cooked a new patch that should make a bit more sense.
I have added the new builder under
_get_experimental_scheduled_builders(), as the comment above that
function suggested me it would be a good idea. :)
Does it look a reasonable start?
Regards,
Marco Leogrande
Sent by a carbon-based life form; hence, it may contain repetitions,
inaccuracies,
2010 Apr 27
2
Curve Fitting/Regression with Multiple Observations
I recently came to realize the true power of R for statistical
analysis -- mainly for post-processing of data from large-scale
simulations -- and have been converting many of existing Python(SciPy)
scripts to those based on R and/or Perl.
In the middle of this conversion, I revisited the problem of curve
fitting for simulation data with multiple observations resulting from
repetitions.
In the
2008 Aug 15
2
Combination with repetition
Hi there! I can't find any information about creating combinations
with repetitions in R. The function combn() does create combinations,
but _without_ repetitions.
Here is what I need to do:
svIter <- 1000
xx <- matrix(rnorm(m*n), c(m, n))
sequence <- seq(range(xx)[1], range(xx)[2], length.out = svIter^(1/q))
expand.grid(secuence, secuence, .../q times/..., secuence)
That is,
2007 Mar 06
3
Is there a quick way to count the number of times each element in a vector appears?
Hi there,
I'm writing a function that calculates the probability of different
outcomes of dice rolls (e.g., the sum of the highest three rolls of
five six-sided dice). I'm using the "combinations" function from the
"gtools" package, which is great: it gives me a matrix with all of the
possible combinations (with repetitions allowed). Now I want to count
the number
2015 Jun 10
2
[LLVMdev] Contributing a buildbot for the BPF backend
Hello Marco,
Welcome aboard!
slaves.py keeps the build slaves definitions, builders.py keeps the
builders definitions. You have to have both.
The steps of adding a new slave is here:
http://llvm.org/docs/HowToAddABuilder.html. Please make sure you done the
step # 10 before bringing your slave up, otherwise it wouldn't be
authorized by the master and will be blacklisted after multiple
2015 May 08
2
[LLVMdev] Contributing a buildbot for the BPF backend
Hi everyone,
I am working with Alexei Starovoitov to contribute an LLVM buildbot
for the experimental BPF backend.
I am following the steps at [1] to setup a buildbot and I was mostly
successful: I was able to setup a slave and a temporary master to
check its base config.
Now I'm not sure about the next step: patching the "slaves.py" and
"builders.py" files in zorg.
* Is
2004 Jun 01
2
Problem in random (lme)
In a lattice 11x11 with 6 repetitions, we want to compare lines to their two parents. 3 of the 6 repetitions are sprinkled and the 3 others not. There are 5 factors : hm (hydrous mode), variety, block, rep and grandrep. grandrep gathers two repetition, a sprinkled and a not (as in Split Plot !). I use lme but I have problems in random. Can someone help me ?
Ibnou DIENG