Displaying 20 results from an estimated 700 matches similar to: "Defining a variable outside of optim or differential equation solver."
2012 Jul 03
1
Wrapper function for multivariate arrays for ode
I am trying to to write a wrapper function for the ode solver (under
the package desolve) to enable it to take multivariate arrays. I know
how to do it for 1 dimension arrays but my code breaks down when I try
to do it for 2 dimensional arrays. Here is my code
diffwrap<-function(t,y,mu)vdpol(t=t,A[1:3,1:4]<-y[1:12],B[1:12]<-y[13:24],mu=mu)
vdpol<-function(t,A,B,mu)
{
list(c(mu,
2013 May 02
2
ODE solver
I am trying to use the package ode and periodically it will come up with
this error message
Warning..Internal T (=R1) and H (=R2) are
such that in the machine, T + H = T on the next step
(H = step size). Solver will continue anyway.
And then the program just take very long to run. Is there anyway to get the
program to terminate when this warning is issued instead of continuing to
run ?
2024 Feb 02
1
List of Words in BioWordVec
I *think* this might be better posted here:
https://bioconductor.org/help/support/
Cheers,
Bert
On Thu, Feb 1, 2024 at 4:37?PM TJUN KIAT TEO <teotjunk at hotmail.com> wrote:
> Is there a way to extract list of words in BioWordVec in R
>
> Thank you
>
> Tjun Kiat
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
2024 Feb 02
2
List of Words in BioWordVec
Is there a way to extract list of words in BioWordVec in R
Thank you
Tjun Kiat
[[alternative HTML version deleted]]
2018 Apr 12
1
ODE
Hello All,
I'm struggling to solve this ODE using R,
vdpol <- function (h, v, t) (
list(c (
-0.1*v/(pi*(2*10*h-h^2)),
(v = (-0.1*v/(pi*(2*10*h-h^2))^2) + 2*9.81*h))
))
library(deSolve)
yini <- (c(h = 20, v=0))
nonstiff <- ode(y = yini, func = vdpol,
times= seq(0, 30, by =
2012 Sep 21
2
Parallel Programming
I am trying to do parallel programming and I tried this
library(doSNOW)
library(foreach)
testfunc<-function(x){
x<-x+1
x
}
noc<-2
cl <- makeCluster(do.call(rbind,rep(list("localhost"),noc)), type = "SOCK")
registerDoSNOW(cl)
clusterExport(cl=cl,c("testfunc.r"))
testl<-foreach(pp=1:2) %dopar% {
testfunc(pp)
}
And this works but if I try to
2012 Dec 28
1
Multicore/Parallel
I am using the package Multicore/Parallel to do importance sampling. I have
5 cores on my computer. And I have
let's say 10 000 particles to generate. What I did was to send 5 particles
in each time, calling the package parallel. Which means in all I am calling
the parallel command 2000 times.
What happens is in the end somewhere along the way I end up with the error
message error in fork
2013 Jun 20
0
Installing Jags on 64 Bit Fedora
I know this has been covered before but I have read all the posts on this
subject but I still cannot resolve it. I tried to install rjags on a 64bit
Fedora 17 and I got this error message
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/usr/lib64/R/library/rjags/libs/rjags.so':
2005 May 25
5
[LLVMdev] LLVM Cygwin Run Errors
Hi,
I installed the cfrontend 1.5 and LLVM 1.5 from source in cygwin
successfully using GCC3.4.3 and binutils2.15 (as in makefiles do not
complain errors except some warnings).
However when I do this, there are some errors like,
***************************************************************
u0201201 at 9nnvf2ay /home/cfrontend/install/lib
$ llvm-ranlib libiberty.a
llvm-ranlib: Error opening
2010 Sep 16
1
More accurate ODE solver?
Dear All,
I was using rk4 and lsoda to solve a ODE system. However, both of them gave
bad accurate solutions, especially compared with Matlab solver ODE45. For
example, ODE45 gave solutions that can go to a stable level (about 1.6) when
time goes to infinity, however, the solutions from lsoda are decreasing to
very very small (about 1e-130) numbers.
Does R have more accurate ODE solvers as
2005 Dec 15
2
[LLVMdev] List Scheduling on LLVM Instructions
Hi All,
I am planning to use list scheduling on LLVM instructions.
Any recommendation on how to start ? As in which codes in LLVM that I need
to look at.
Since I am still a newbie, any readings recommended? :)
Thanks a lot for the help.
Regards,
Kiat
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jul 24
13
performace of disks
Hello,
Queries:
1 - what is the best RAID (0,1,5,10,50) for server running very, very
VM instances ???
2 - and config of stripes/element sizes (32, 64, 128, 256, etc, KB) ??
3 - in the configuration of VM, exit one difference in performance
between image file (disk:/) or LVM partition (phy:/) ???
any URL or docs for read about this theme ?
mmm.. it is all for moment.
thanks
--
--
Victor
2005 May 19
2
[LLVMdev] Building LLVM cfrontend
Hi, I am still new to LLVM and also GNU softwares.
I am doing a project using LLVM.
I was building cfrontend on my windows cygwin, however I encountered
this problem, may I now what is the cause?
********************************
my configuration output is:
bash-2.05b$ ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-n
ls --disable-shared --enable-languages=c,c++
loading
2013 Jan 23
2
Dot plot of character and numeric matrix
Dear List,
I have a set of data which looks like this (small set of sample)
A A 0.431
A A 0.439
A A 0.507
A G 0.508
A A 0.514
I will like to use this data to plot a dot plot, with the X-axis being of type character, and my y axis of type numeric.
When I try to use the dot chart function, I get the error message "'x' must be a numeric vector or matrix", which I can understand
2008 Nov 19
10
Outlook and roaming profiles?
Hi list,
I'm trying to migrate from a workgroup based Samba server to a domain based
Samba server.
I need the following features
- Roaming profiles
- LDAP based user administration / authentication
I think the LDAP part is mostly doable, though I do foresee some hair
tearing, but my main concern is with the roaming profiles.
Users do not have a fixed workstation and log-on to whichever
2017 Jun 21
4
How to apply a system of ordinary differential equations to a cell grid?
Hello,
I am developing an agent-based model to simulate the spread of infectious diseases in heterogeneous landscapes composed of habitat polygons (or clumps of connected cells). To simplify the model, I consider a habitat grid (or raster) containing the polygon ID of each cell. In addition, I have epidemiological parameters associated with each polygon ID. At each time step, the parameter values
2001 Sep 11
2
Differential Equations Using R?
To whom it may concern,
I am a student at Macaleste College, and next semester Macalester
is going to offer a course for CellBio that is mainly statistically based.
For the most part the students will be using R for analysis. The problem is
there will be some simple differential equations for the students to solve.
The committee that in charge of the classes corriculam would like only to
2011 Mar 15
1
precompiled ode with spline input
I tried to use lsode with precompiled C code instead of an R function
defining the derivatives. No problem so far.
However, now I need to implement an ODE that contains spline functions,
i.e. the derivatives at given time points depend on the value of a
spline function at this time point. What is an efficient way to
implement this in precompiled C code?
--
Daniel Kaschek <daniel.kaschek at
2000 Jul 26
4
differential equations
Hi, Does somebody knows of the existence of a library of functions
for solving differential equations, I need a solver for a system of non
linear first order differential equations. I think there was something
in IMSL but that was a long time ago and probably there are some
new algorithms in the new now.
Thanks for any pointers.
.
R. Heberto Ghezzo Ph.D.
Meakins-Christie Labs
McGill
2004 Jun 08
1
Differential Equations
Hello!
I would like to know if R can solve Differential Equations...
I don't think so because, in my point, I see R like a Statistical System, not a
Math System. Am I wrong?
Thank you very much.
M??rcio de Medeiros Ribeiro
Graduando em Ci??ncia da Computa????o
Departamento de Tecnologia da Informa????o - TCI
Universidade Federal de Alagoas - UFAL
Macei?? - Alagoas - Brasil
Projeto CoCADa