Displaying 20 results from an estimated 300 matches similar to: "simulating a model"
2010 Aug 10
3
sapply/lapply instead of loop
Using the input below, can I do something more elegant (and more efficient)
than the loop also listed below to pad strings to a width of 5? The true
matrix is about 300K rows and 31 columns.
#######################
#INPUT
#######################
> temp
DX1 DX2 DX3
1 13761 8125 49178
2 63371 v75 22237
3 51745 77703 93500
4 64081 32826 v72
5 78477 43828 87645
>
2006 Aug 09
2
Speeding indexing and sub-sectioning of 3d array
Hi,
I am having a problem with a very slow indexing and sub-sectioning of a 3d
array:
> dim(arr)
[1] 245 175 150
For each point in the array, I am trying to calculate the mean of the values
in its surrounding:
mean( arr[ (i - radius):(i + radius),
(j - radius):(j + radius),
(k - radius):(k + radius)] )
Putting that code in 3
2003 Oct 23
2
OOP like handling of lists?
Hello,
I am writing a package with a collection of several models. In order to
allow users to play interactively with the models (in contrast to
hacking lengthy scripts), I want to put all what is needed to run a
particular model into a single list object for each model.
Then there will be a collection of functions to run the model or to
modify parameters, time steps, integration method ...,
2001 Apr 19
2
Multiple linear regression
Dear R-users,
I've a question regardiing multiple linear regression.
Is it possible to regress a function of the type
y=b0+b1*x1+b2*x2
constraining the partial derivatives dy/dx1 and dy/dx2 to be greater
than 0 ???
Thank you very much for any possible suggestion.
Best regards
Marco
--
Marco Pagani - PhD Student
Dipartimento di Scienze della Terra - Sezione Geofisica
Universita' degli
2012 Feb 01
0
Multi-response, multi-rater kappa?
I'm looking for an extension of kappa to measure agreement among multiple
raters when there can be more than one response per subject. For example,
say a group of doctors assign diseases to patients. Each patient will be
assigned one to many diseases, and the number of doctors assigning diseases
to any one patient will be two to many.
Here's an extremely simple example of the type of
2009 Jan 23
2
Plot, lines and disordered x and y
Hello,
I have 2d data where x coordinate is not given in usual ascending
order (x1,...,x1+l; l>0), and instead in another, regular, but not
ascending or descending order (for illustration:
x1,-x1,x1+dx1,-x1-dx1,....).y is an array which corresponds to the way
x is ordered. I have noticed that giving 'plot(x,y,type='l') produces
a plot where the points are connected in a completely
2000 Feb 08
1
DEC cc doesn't like c++ comments (PR#416)
Full_Name: Albrecht Gebhardt
Version: 0.99.0
OS: alpha, osf4.0
Submission from: (NULL) (143.205.180.40)
DEC cc doesn't like c++ style comments // like this one
Please use standard cc comments or #if 0 ... #endif
A quite large patch follows
(I hope it will pass mailing with not too much wrapped lines):
--- ./src/main/g_her_glyph.c.dec-cc.patch Mon Feb 7 14:48:10 2000
+++
2005 Sep 21
2
Bryan Smith: Thanks for the IPCop recommendation
A few weeks back I had tried to install CentOS on my old AMD 5x6x (equiv
to P75 performance) with plans to use it as my firewall and router.
Because there were some problems relating to RPM compile architecture
(apparently), I posted and Bryan suggested IPCop, even at peril to his
life on these lists ;-)
according to him. ;-) ;-)
Just wanted to tell him thanks, it's worked out well. Had
2003 Jan 14
6
Hardware advice please?
I am quite new to Linux and have moved (almost) from a windoze
NT4 environment.
My present configuration is running SuSE V 8.0 with KDE3.0.5
desktop on two machines, connecting with Samba to an NT4 PC,
and an occasional laptop or other PC that connects locally to the
network.
After a deal of searching, researching, and seeking advice I have
decided to use Shorewall as my firewall.
2009 Apr 23
4
Which version of OpenGL is wine using?
Hello again.
Today I got following questions:
1.Which version of OpenGL is wine written in? 3.1? 3.0? 2.1? 2.0? Lower
maybe?
2.Is wine using custom OpenGL extensions? From which vendors (NVIDIA I
guess, ATI, S3, INTEL or others as well?)?
3.What is the minimum OpenGL version to run DX2/3/6/7,DX8,DX8.1 and DX9.0
apps? (I guess for OpenGL apps it doesn't really matter right? You are just
2003 May 14
2
Booting from Harddisk
Hi,
I've made several attempts to boot syslinux from the harddisk.
I have a win 98 startdiskette with syslinux and copybs.
I strictly follow the procedure in the syslinux documentation.
Yet, the result of the boot is not that linux is starting.
Instead, the Microsoft windows screen flashes for a couple of
seconds and is then replaced by a Dos prompt.
Syslinux is V2.04. The PC is an IBM Aptiva
2011 Oct 16
5
ImgBurn on Arch Linux 64 bit
Im using arch linux 64bit, and i am unable to run ImgBurn properly..... it just displays an error message saying that the program cannot start and that's it.
Does anyone around here use ImgBurn as i do? How did you manage to make it work?
Thank you!!!
Wine version: 1.3.30
ImgBurn Version: 2.5.6.0
2005 Oct 20
0
[PATCH][VT] disable bogus touchpad device model, which cause annoying dmesg on 2.6 kernel
disable bogus touchpad device model, which cause annoying dmesg on 2.6 kernel
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
diff -r 7c951e3eb5ab -r 14d3890843d0 tools/ioemu/hw/pckbd.c
--- a/tools/ioemu/hw/pckbd.c Wed Oct 19 11:53:00 2005 +0100
+++ b/tools/ioemu/hw/pckbd.c Thu Oct 20 18:28:18 2005 +0800
@@ -29,6 +29,9 @@
/* debug PC keyboard : only mouse */
//#define DEBUG_MOUSE
+/*
2010 Sep 27
1
Fitting with error on data
As this forum proved to be very helpful, I got another question...
I'd like to fit data points on which I have an error, dx and dy, on each x
and y. What would be the common procedure to fit this data by a linear model
taking into account uncertainty on each point? Would weighting each point by
1/sqrt(dx2+dy2) (and taking dx and dy as relative errors) in a lm() fit do
the job? I would like to
2019 Dec 13
2
Long running nbdkit tests
The nbdkit tests take a long time to run especially on armv7. To try
to get an idea of which tests take the most time, and since I happen
to have a qemu aarch64 *TCG* guest available, I ran the tests on that
guest.
A TCG guest is about the worst case for libguestfs, used by some
tests, since it uses double-nested TCG, and as you can see below there
are tests taking over 6 hours.
In fact I
2008 Apr 30
4
Garbage screen in some games
Hi!
I get some strange behaviour from wine in some games, altrough test of other people give these games should work.
I can post some logs and screenshort.
Deus Ex 2:
Is all a mess! Intro Video are garbage, and in-game graphics have a strange behaviour:
Intro video
http://img84.imageshack.us/img84/6756/deusex2jx4.png
main menu:
http://img230.imageshack.us/img230/3275/deusex2mainmenuub9.png
In
2000 Feb 03
1
Performance Samba 2.0.6 / FreeBSD 3.4 vs NT and NetWare
I'm getting samba setup, and it seems to be working. I have PDC/BackupPDC
issues to resolve, and want to change things so the NT PDC authenticates
users instead of setting them up using smbpasswd. Right now, I can access
the samba box from Win98 and WinNT workstation with "manually setup"
smbpasswd's.
I have been testing performance and am a little disappointed, I hoped samba
2004 Jun 14
1
olesolve: stepsize
Hi,
I am doing a project on the simulation of glucose metabolism based on a
pharmacokinetic modeling in which we have 4 differential equations. I did
this in R by using the odesolve package. It works very well, but I have two
questions:
Here is the odemodel function
_________________________________________________
Ogtt.Odemodel <- function(t, y, p) {
absx <- c(-60, -45, -30,
2009 Nov 13
0
about the pgmm in plm package (application and singularity)
Dear Sir or Madam:
I am Shaojuan Liao, the 3rd year Ph.D. student from Econ Department,
Virginia Tech.
I don't know whether it is appropriate to ask you questions on the
command pgmm. But I don't know how to deal with the case where all X are
exogenous and all T time periods' X can be used as the instrument.
Problem 1:
I know when X are predetermined, such as
Z=[y1,X1,X2, 0,
2012 Jun 30
2
[LLVMdev] llc -O# / opt -O# differences
Hey everyone,
I'm running stock LLVM 3.1 release. Both llc and opt programs have the
-O# arguments, however it looks like the results are somewhat
different. Here's a silly unoptimized bit of code which I'm generating
from my LLVM-backed program
; ModuleID = 'foo'
%Coord = type { double, double, double }
define double @foo(%Coord*, %Coord*) nounwind uwtable ssp {
entry: