Displaying 20 results from an estimated 1000 matches similar to: "2d rndom walk"
2010 Dec 02
4
2D Random walk
I've wrote some code to simulate a random walk in 2 dimensions on a lattice.
Basically I want to add something in to make it plot it point by point so
you can see what is going on.
Heres my code for the random walk in 2d
RW2D<-function(N)
{
i<-0
xdir<-0
ydir<-0
xpos<-vector()
xpos[1]<-xdir
ypos<-vector()
ypos[1]<-ydir
for (i in 1:N-1)
2011 Jun 30
0
help with interpreting what nnet() output gives:
Greetings list,
I am new to programming in R, and am using nnet() function for a project on
neural networking.
Firstly I wish to ask if there is any pdf explaining the algorithm nnet
uses, which could tell me what the objects of the nnet class, like 'conn',
'nconn, 'nsunits', n and 'nunits' mean, and how weights are calculated.
The package pdf has little or no
2013 Jul 19
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
To compile vmkit on Ubuntu 12.04 64-bit machine, I followed the steps
giving here <http://vmkit.llvm.org/get_started.html>[1].
but when I run ./configure I am getting following error-
root at komal:/home/komal/Desktop/GSOC/vmkit/vmkit# ./configure
>> -with-llvm-config-path=../llvm-3.3.src/configure
>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip
2013 Jul 19
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hi Harris Bakiras,
Thanks for reply. It working now.
Actually I wanted to try vmkit VM to run jruby codes.
vmkit is able to run Java program, but when I try to run JRuby code then I
get following error -
root at komal:/home/komal/Desktop/GSOC/programs# jruby hello.rb
>
> Platform.java:39:in `getPackageName': java.lang.NullPointerException
>
> from ConstantSet.java:84:in
2006 Nov 23
2
Do anyone know the solution...
Hi all,
This is my query.
Let me explain the environment first.
I have to write a perl-cgi script to add a user in samba.
I will be accessing this script through apache server, in short i am
making a web page to add samba user.
My query is how can i add user with "smbpasswd" command and giving
password as command line argument.
In normal scenario i get a prompt asking for
2013 Jul 19
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
I am working on a project to port JRuby on Embedded systems. JRuby converts
Ruby code to bytecode which is executed by any JVM. For this project I am
testing performance of JRuby with various available JVMs. I have chosen ARM
architecture.
Does vmkit support ARM architecture?
On Fri, Jul 19, 2013 at 8:01 PM, Harris BAKIRAS <h.bakiras at gmail.com> wrote:
> I don't know how JRuby
2013 Jul 22
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
here <http://vmkit.llvm.org/> its mentioned that its portable on ARM. So
simply cross-compiling will work?
On Mon, Jul 22, 2013 at 7:37 PM, Harris BAKIRAS <h.bakiras at gmail.com> wrote:
> Hello Kumar,
>
> Unfortunately we never experienced on ARM architecture and we are not
> planning to port VMKit on ARM for the moment.
>
> Regards,
>
> Harris Bakiras
>
2013 Jul 19
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hi Kumar,
There is an error on your configuration line, you should provide the
path to llvm-config binary instead of configure file.
Assuming that you compiled llvm in release mode, the llvm-config binary
is located in :
YOUR_PATH_TO_LLVM/Release+Asserts/bin/llvm-config
Try to change the -with-llvm-config-path option and it will compile.
Harris Bakiras
On 07/19/2013 02:36 PM, Kumar
2013 Jul 19
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
I don't know how JRuby works, maybe it uses some new feature that GNU
Classpath does not provide.
VMKit's openJDK version is unstable on 64 bits since package version 6b27.
You can still use it for very small programs which does not need GC but
that's all.
It works fine on 32 bits.
So you can try it on 32 bits or revert your java version to a previous
one (< than 6b27) to test
2013 Jul 22
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hello Kumar,
Unfortunately we never experienced on ARM architecture and we are not
planning to port VMKit on ARM for the moment.
Regards,
Harris Bakiras
On 07/19/2013 05:50 PM, Kumar Sukhani wrote:
> I am working on a project to port JRuby on Embedded systems. JRuby
> converts Ruby code to bytecode which is executed by any JVM. For this
> project I am testing performance of JRuby
2011 Apr 06
5
Need a more efficient way to implement this type of logic in R
I have cobbled together the following logic. It works but is very
slow. I'm sure that there must be a better r-specific way to implement
this kind of thing, but have been unable to find/understand one. Any
help would be appreciated.
hh.sub <- households[c("HOUSEID","HHFAMINC")]
for (indx in 1:length(hh.sub$HOUSEID)) {
if ((hh.sub$HHFAMINC[indx] == '01')
2013 Jul 22
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hi Kumar,
It's a mistake, we will correct that, we haven't tested vmkit on arm. As
LLVM supports arm, by cross-compiling vmkit in arm/linux, it could work,
but you will probably have to adapt some few parts of the code. If you plan
to make the port, feel free to send us a lot of patches :)
Gaël
Le 22 juil. 2013 17:09, "Kumar Sukhani" <kumarsukhani at gmail.com> a écrit :
2013 Mar 22
3
Distance calculation
Hi Elisa,
I hope this is what you wanted.
dat1<-read.csv("peaks.csv",sep=",")
#Subset
dat2<-dat1[1:5,]
res1<-do.call(cbind,lapply(seq_len(nrow(dat2)),function(i) do.call(rbind,lapply(split(rbind(dat2[i,],dat2[-i,]),1:nrow(rbind(dat2[i,],dat2[-i,]))), function(x) {x1<-rbind(dat2[i,],x);
2012 Mar 16
3
Faster way to implement this search?
I am working on a simulation where I need to count the number of matches
for an arbitrary pattern in a large sequence of binomial factors. My
current code is
for(indx in 1:(length(bin.05)-3))
if ((bin.05[indx] == test.pattern[1]) && (bin.05[indx+1] ==
test.pattern[2]) && (bin.05[indx+2] == test.pattern[3]))
return.values$count.match.pattern[1] =
2012 Feb 21
2
Dataframes in PLS package
I have been working with the pls procedure and have problems getting the
procedure to work with matrix or frame data. I suspect the problem lies in
my understanding of frames, but can't find anything in the documentation
that will help.
Here is what I have done:
I read in an 10000 x 8 table of data, and assign the first four columns to
matrix A and the second four to matrix B
pls <-
2006 May 26
2
combinatorial programming problem
Hola!
I am programming a class (S3) "symarray" for
storing the results of functions symmetric in its
k arguments. Intended use is for association indices
for more than two variables, for instance coresistivity
against antibiotics.
There is one programming problem I haven't solved, making an inverse
of the index function indx() --- se code below. It could for instance
return the
2006 Aug 30
1
Samba and Printing
Hello,
I have quick question about Printing with Samba.I want to print to
printer connected to Windows machine.I do not have drive for Linux of
the printer.Should I create raw queue in Linux to print to Windows printer?
If i do not have suitable driver for Linux for printer is it still
possible to print to windows printer ?
I tired postscript printer but it is not working.
Thanks
Regards,
2014 Mar 24
4
[PATCH 1/4] pm/fan: drop the fan lock in fan_update() before rescheduling
From: Martin Peres <martin.peres at labri.fr>
This should fix a deadlock that has been reported to us where fan_update()
would hold the fan lock and try to grab the alarm_program_lock to reschedule
an update. On an other CPU, the alarm_program_lock would have been taken
before calling fan_update(), leading to a deadlock.
We should Cc: <stable at vger.kernel.org> # 3.9+
Reported-by:
2017 Oct 12
4
comparing two strings from data
Hi,
I have two columns that contain numbers along with letters (as shown below)
and have different lengths. Each entry in the first column is likely to be
found in the second column at most once.
For each entry of the first column, if that entry is found in the second
column, I would like to get the corresponding index. For instance, if the
first entry of the first column is 5th entry in the
2009 Sep 14
2
Escaping . in regular expression
If I run
cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
print(cvec)
indx<-grep('\.f',cvec,perl=TRUE)
fset<-cvec[indx]
print(fset)
I get
> cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
> print(cvec)
[1] "test.f" "test.sf"