Displaying 20 results from an estimated 1500 matches similar to: "Building a random walk vector"
2018 Jul 22
2
R History: Why is there no importFrom() function?
Excuse me if this is inappropriate content for this list, but I thought it
might be the best place -- and the best audience -- to ask about a design
decision for the R language.
Programs or analyses written in R typically use library() to pull in
functions from non-core packages. This differs markedly from most
languages*, which usually offer some way to selectively import symbols. For
example,
2015 Jan 22
2
[LLVMdev] access IntegerType::getSignBit from Type *
Hi,
I have a Type * which may come from an IntegerType as shown below:
Type.getIntegerBitWidth() tells me numBits.
But how to extract the IntegerType.getSignBit?
If pType isIntegerType, I need to know if it is signed or unsigned...
How to achieve this?
Thx
Alex
llvm::Type * getRandomValid_IntegerType(llvm::LLVMContext &C)
{
using namespace llvm;
//--- determine num of bits
2018 Sep 26
1
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
On Thursday, 20 September 2018 10:50:14 CEST Richard W.M. Jones wrote:
> +# Choose a random port number in range [50000,59999]
> +imageio_port = random.randint(50000,60000)
> +
> [...]
> +
> +def server():
> + server_address = ("", imageio_port)
> + httpd = HTTPServer(server_address, RequestHandler)
> + httpd.serve_forever()
The random port can be
2012 Jan 28
2
Need very fast application of 'diff' - ideas?
Hi everyone,
Speed is the key here.
I need to find the difference between a vector and its one-period lag (i.e. the difference between each value and the subsequent one in the vector). Let's say the vector contains 10 million random integers between 0 and 1,000. The solution vector will have 9,999,999 values, since their is no lag for the 1st observation.
In R we have:
#Set up input vector
2006 Nov 21
2
Handle Options Method
Hi,
I have an Alteon in test (a sip/rtp load balancer).
This Alteon sends to the asterisk box a "SIP OPTIONS" to know if
asterisk is alive.
However, asterisk sends me a 404 message and not a response like, for
example, a Thomson (200 + SDP)
I wrote a very little script (you can find it at the end of the email)
to send an Options message to asterisk/phones to try.
It works
2007 Jan 05
1
help for memory problem with 64-bit machines
Hello,
I would appreciate *any* ideas on this problem. I'm the maintainer of a
package ("subselect"), which on CRAN's Daily Package Checks is OK on all
flavours of R, except r-devel Linux x86_64, where there is a "memory not
mapped" segfault with the very first example that is tried out (output below).
Additionally, a user with an AMD64 machine has just reported a
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html
v2:
- Rewrote patch 2 from scratch so it incorporates Nir's suggestions.
- Add fake module to EXTRA_DIST.
- Retested.
Unfortunately I am no longer able to test the ordinary conversion path
because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
Previously this output method was almost completely untested.
This commit adds a fake ovirtsdk4 module so we can test the
-o rhv-upload method fairly completely without needing an actual
oVirt instance around.
---
v2v/Makefile.am | 4 +
.../ovirtsdk4/__init__.py | 146 ++++++++++++++++++
.../ovirtsdk4/types.py | 125
2011 Jan 25
2
ggplot geom_boxplot and stat_smooth
Dear all
I would like to superpose some smoothing line through boxplot in ggplot
> dput(ad)
structure(list(konc.f = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 6L, 6L, 6L,
7L, 7L, 7L, 7L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L,
4L, 4L, 4L, 4L, 4L, 4L, 4L, 6L, 6L, 6L, 7L, 7L, 7L, 1L, 1L, 1L,
1L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L,
2010 Dec 09
1
Extremely poor write performance, but read appears to be okay
Hello,
I'm writing from the otherside of the world from where my systems are,
so details are coming in slow. We have a 6TB OCFS2 volume across 20 or
so nodes all running OEL5.4 running ocfs2-1.4.4. The system has worked
fairly well for the last 6-8 months. Something has happened over the
last few weeks which has driven write performance nearly to a halt.
I'm not sure how to proceed, and
2005 May 22
1
Change HTB "final qdisc" of the default walk-throught class
Hello everybody!
With a HTB qdisc:
# tc qdisc add dev eth0 root handle 99: htb
How can I change the "final qdisc" of the default walk-throught class?
# tc qdisc add dev eth0 parent 99:0 handle 88: sfq
results in: "RTNETLINK answers: Invalid argument"
CBQ automatically creates a xx:0 root class where I can attach final
qdiscs... - If there is a root class in htb, how is it
2010 May 10
1
Random walk
Hi everybody,
I am trying to generate two random walks with an specific correlation,
for example, two random walks of 200 time steps with a correlation 0.7.
I built the random walks with:
x<-cumsum(rnorm(200, mean=0,sd=1))
y<-cumsum(rnorm(200, mean=0,sd=1))
but I don't know how to fix the correlation between them.
With white noise is easy to fix the correlation using the function
2007 Oct 24
2
random walk w/ reflecting boundary: avoid control construct?
Dear expeRts,
recently I asked for a nice way to re-program a problem
without using control constructs such as "for" or
"sapply(1:length(x), ...". Is there a way to program
a random walk with a reflecting boundary without resorting
to such constructs? A working solution is
ranwalk <- function(length, bound) {
k <- cumsum(sample(c(-1, 1), length, replace=TRUE))
2011 Nov 11
1
Random-walk Metropolis-Hasting
Following is my code, can some one help on the error at the bottom?
> mh<-function(iterations,alpha,beta){
+ data<-read.table("epidemic.txt",header = TRUE)
+ attach(data, warn.conflicts = F)
+ k<-97
+ d <- (sqrt((x-x[k])^2 + (y-y[k])^2))
+ p <- 1-exp(-alpha*d^(-beta))
+ p.alpha<-1 - exp(-3*d^(-beta))
+ p.beta <- 1 - exp(alpha*d^(-2))
+
2011 Mar 14
1
[PATCH] New APIs: guestfs_first_private, guestfs_next_private to walk over the private data area.
This patch adds useful APIs for walking over the private data area.
It is a prerequisite for the new event API stuff (specifically for the
language bindings for that).
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
2004 Jun 10
0
Would like to ask a * user some question over voice or a walk thru in the Hou,TX area
I would like to either talk to over the phone a * admin a few question on
the deploy and a few question on the setup of * at the very least if some
doesn't mind or a walk thru of there site if there in the Houston area.
I am looking at cutting over to * for some things but I have some setup
question that could easily be answer in about 30-60 minutes.
Please reply to lists efastfunding com
2020 Feb 07
0
[RFC PATCH v7 35/78] KVM: x86: disable gpa_available optimization for fetch and page-walk NPF/EPT violations
From: Mircea C?rjaliu <mcirjaliu at bitdefender.com>
This change is needed because the introspection tool can write-protect
guest page tables, exec-protect heap/stack pages and let KVM emulate
the instruction that caused these violations.
Signed-off-by: Mircea C?rjaliu <mcirjaliu at bitdefender.com>
Signed-off-by: Adalbert Laz?r <alazar at bitdefender.com>
---
2017 Feb 08
0
[PATCH 2/2] lib: allow to walk registry with corrupted blocks
There are some corrupted registry files that have invalid hbin cells
but are still readable. This patch makes the following changes:
* hivex_open - do not abort with complete failure if we run across a
block with invalid size (unless it's the root block). Instead just
log the event, and move on. This will allow open hives that have
apparent invalid blocks but the ones of potential
2006 Aug 13
1
Johnny's postfix/dovecot/squirrelmail/virus scanning + Centos4 Walk Through...
Is anyone mirroring Johnny's write up on this?
As fate would have it, I've finally got some time to sit down and
configure a spare box to be my new mail server and Johnny's site has
been defaced again. :-( Sigh....I even checked to make sure it was up
this morning, drove to the office so I could do everything from the
terminal and my handy dandy roadmap is gone....
Any pointers
2006 Apr 27
1
random walk on graph
Hi all,
I'm having issues coding a random walk on a fully connected, undirected
graph G with probability transition matrix P = (p_ij). Here is what I have
so far ...
for(i in 1:n){
for(m in 1:M){
x <- as.vector(matrix(rep(0,N+1),nc=N+1))
x[1] <- i
for(k in 2:N+1){
y <- as.vector(matrix(rep(0,n),nc=n))
r <- runif(1)
c <- c(0,cumsum(P[x[k-1],]))
for(j in