Displaying 20 results from an estimated 1000 matches similar to: "Question on using elements of a vector"
2010 Apr 08
2
Problem using elements in a vector
Hi
So my particular problem is this:
I have a row vector of length 5200 elements - specifically created by
x<-rbinom(5200,1,0.5)
y<-matrix(x,nrow=1,ncol=5200)
y
now, each element is either a 0 or a 1 - e.g. it could be
(0,1,1,1,1,0,0,0,1,1,1) e.t.c.
when the element is a 1, i need to multiply a number (say 1000) by 1.005,
and if it is 1 again, multiply it _again_ by 1.005.
so for
2005 Jul 25
4
"missing" directories
Running Samba 3.0.14a under kernal 2.6.11-1.1369 (Fedora core 4)
I'm trying to set up a file server for use with XP network. I have an
interesting problem that came to light when I had difficulty connecting from
Windows.
I can set up a shared directory exactly as detailed in the troubleshooting
guide (setting up /tmp as tmp) and can connect from my account on the
server.
If I try to
2008 Sep 30
2
R's integrate function
Hello,
I am trying to use R's integrate function to calculate the following
integral for z=423:
integrate(function(y,z){
sapply(y, function(y,z){
integrate(function(x,z)
1/x*dbeta(0.01,x/(0.005/1.005),(1-x)/(0.005/1.005))*dbeta(y,x/(0.005/1.005),(1-x)/(0.005/1.005))*(1-y)^z,0,1,423)$value
})
},0,1,423)$value
but I receive an error message saying that the maximum number of
subdivisions is
2011 Apr 08
5
Avoiding a loop
Friends.
I cannot simplify this much, and I think the loop is unavoidable. As a
recovering C programmer I want to avoid loops and in cases like this I
almost allways can by using an apply function. But I suspect in this case
there is nothing I can do.
It is a finance example where a price series is compared to a moving
average. If the price goes above the average, plus a bit, buy the
2009 Feb 04
1
newbie - difficulty calling user defined function from by()
Hi Folks:
I'm new to R and am having trouble calling a user-defined function
within the by() function. I have checked on-line help and the R
documentation to no avail. I have a data frame with a sample subset
represented here:
> example.sample
ACCT_GROUP_DIM_KEY MV_BASE TOT_DEBT TOT_EQTY
1 555586574850 1082576.3 685.00 2422.50
2 555586574850 1032994.2 2444.00
2009 Mar 24
3
generalized Poisson regression
Dear sir,
I want to know about R command for parameter estimation for generalized
Poisson regression.
yours faithfully
Arafat Ud Zaman
4th year(Hons)
Applied statistics
University of Dhaka
Mob- +8801715173176
E-mail: arafat.zaman@yahoo.com
azaman1@isrt.ac.bd
azaman1@quantummethod.org.bd
[[alternative HTML version deleted]]
2015 Sep 17
1
[PATCH v2 1/1] extlinux: fix memory leak
On Fri, Sep 11, 2015 at 10:12 AM, Paulo Alcantara via Syslinux
<syslinux at zytor.com> wrote:
> On Thu, 10 Sep 2015 10:55:04 +0300
> Imran Zaman via Syslinux <syslinux at zytor.com> wrote:
>
>> devname is put on heap for all cases to avoid memory
>> leak, and ease of use in future as well
>>
>> Signed-off-by: Imran Zaman <imran.zaman at intel.com>
2012 Jul 12
2
trellis margin sizes in absolute units
Dear R users,
I have a lot of experience with traditional R graphics, but I decided to turn to trellis as
it was recommended for spatial graphs by the sp package. In traditional R graphics
I always first set the size of the device region absolute units (e.g. mm) and then I
firmly fix the inner margins with mai and the outer margins with oma also in absolute units.
What is left from the device
2018 Dec 07
1
Re: [PATCH] v2v: -o rhv-upload: Fix upload when using https
On Fri, Dec 7, 2018, 10:34 Richard W.M. Jones <rjones@redhat.com wrote:
> On Fri, Dec 07, 2018 at 02:44:21AM +0200, Nir Soffer wrote:
> > Fix rhv-cafile option access, broken by commit 6694028f9827 (v2v: -o
> > rhv-upload: Only set SSL context for https connections).
>
> Ugh yes indeed. Strong typing FTW _again_
"pylint -E" may detect such issues.
...
>
2006 Jun 04
5
chan_capi-cm-0.6 and incoming calls problem
I have a problem receving calls via the ISDN line, using the followin
components
Asterisk 1.0.9 with asterisk@home
chan_capi-cm-0.6
AVM Fritz card
datalink protocol = point to multimode
I can make calls out with no problems so the issue is only incoming calls.
When I make the call from an external line to the ISDN line connected to
asterisk, I get a busy signal after about 5 seconds. I have
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory
leak, and ease of use in future as well
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 55a1495..b7cdf92 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@
2008 May 20
1
The specified network name is no longer available 3.0.25 RHEL4
I have a reproducible intermittent error large site - "The specified network name is no longer available".
This happens when copying large files. Below is part of log level 10 output & strace. Sorry for the long posting. I will probably need to put the loglevel 10 attached to a bugzilla - but thought I would try the lists initially.
RHEL4
samba-3.0.25b-1.el4_6.4
2008 Aug 20
1
vicidial mysql problem
I installed asterisk, astguiclient, php and mysql. but when i dialled one
number to another number my asterisk server give the following error:
> /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
> install_driver(mysql) failed: Can't load
>
'/usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/DBD/mysql/mysql.so'
> for module DBD::mysql: libmysqlclient.so.15:
2008 Jan 08
1
Problem in anova with coxph object
Dear R users,
I noticed a problem in the anova command when applied on
a single coxph object if there are missing observations in
the data:
This example code was run on R-2.6.1:
> library(survival)
> data(colon)
> colondeath = colon[colon$etype==2, ]
> m = coxph(Surv(time, status) ~ rx + sex + age + perfor, data=colondeath)
> m
Call:
coxph(formula = Surv(time, status) ~ rx +
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix file descriptors leak
file descriptors are closed when not in use
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 09740bd..55a1495 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -580,6 +580,7 @@ int ext2_fat_install_file(const char *path, int devfd, struct
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory
leak, and ease of use in future as well
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 48 ++++++++++++++++++++++++++++++++----------------
1 file changed, 32 insertions(+), 16 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 55a1495..7bb7443 100644
--- a/extlinux/main.c
+++
2012 Jul 02
1
How to get prediction for a variable in WinBUGS?
Dear all,I am a new user of WinBUGS and need your help. After running the following code, I got parameters of beta0 through beta4 (stats, density), but I don't know how to get the prediction of the last value of h, the variable I set to NA and want to model it using the following code.Does anyone can given me a hint? Any advice would be greatly appreciated.Best
2006 Mar 27
0
update subset of my data
Please can someone put me out of my misery...
I am missing the point here:
I have a table of albums called: dealers
I have a table of images: popp_images
each dealer has 6 popp_images linked by foriegn key: albumid
Each dealer can login using user_engine engine
I restrict viewing for each dealer to their own images by assigning each
dealer their own albumid.
I list their images with:
in my
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
On Thu, 10 Sep 2015 10:55:04 +0300
Imran Zaman via Syslinux <syslinux at zytor.com> wrote:
> devname is put on heap for all cases to avoid memory
> leak, and ease of use in future as well
>
> Signed-off-by: Imran Zaman <imran.zaman at intel.com>
Reviewed-by: Paulo Alcantara <pcacjr at zytor.com>
Thanks,
Paulo
> ---
> extlinux/main.c | 44
2005 Feb 11
1
Still stuck trying to make Asterisk read MySQL
I've been continuing to experiment with MySQL. I'm
having absolutely no luck getting asterisk to read
voicemail configuration data and mailbox configuration
data from mysql tables instead of from voicemail.conf.
The default Asterisk setup that reads from
voicemail.conf and extensions.conf works fine. I'm
using
Asterisk CVS-v1-0-12/12/04-15:58:29 on a Whitebox
Enterprise Linux box.