Displaying 20 results from an estimated 509 matches for "feng".
Did you mean:
eng
2005 Feb 11
1
Help concerning Lasso::l1ce
Hi,
First, when I try the example Prostate with bound 0.44
(as in the manual), I got a different result:
> l1c.P <- l1ce(lpsa ~ ., Prostate, bound=0.44)
> l1c.P
....
Coefficients:
(Intercept) lcavol lweight age
lbph svi
1.0435803 0.4740831 0.1953156 0.0000000
0.0000000 0.3758199
lcp gleason pgg45
0.0000000 0.0000000
2013 Jan 14
2
The three-dot question
...n <- function(a, ...)
+ {
+ if(a){
+ print(a)
+ }else
+ {
+ print(b)
+ }
+ }
>
> myTask <- function(a)
+ {
+ b <- 3
+ testFun(a, b = b)
+ }
> myTask(FALSE)
Error in print(b) : object 'b' not found
Thanks in advance!
Feng
--
Feng Li
Department of Statistics
Stockholm University
SE-106 91 Stockholm, Sweden
http://feng.li/
2007 Jan 18
5
how to get the index of entry with max value in an array?
Hi all:
A short question:
For example, a=[3,4,6,2,3], obviously the 3rd entry of the array has the maxium value, what I want is index of the maxium value: 3. is there a neat expression to get this index?
Thank you!
Best,
Feng
[[alternative HTML version deleted]]
2002 Oct 29
1
Numerical Integration
Hey, all
Now I am using EM algorithm to do some
optimization. Within that E-step, I have to
calculate some multivariate integration
given some parameter values Theta and function form
of a probability density function f.
So I want to know if there are some package
in R to do such numerical integration given such
function form and parameter values?
Thanks for your kind support on this.
Have a
2011 Jan 18
2
Convert a matrix's columns to list
...quot;
> a <- matrix(1:10, 5, 2)
> a
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
I would like to have a list "b" like this
> b <- list(a[, 1], a[, 2])
> b
[[1]]
[1] 1 2 3 4 5
[[2]]
[1] 6 7 8 9 10
Thanks in advance!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2011 Jan 29
1
Spare matrix multiplication
...o time consuming
because I have to do this thousands of times. I also tried to partition A
into 100 small blocks and use mapply function to multiply by each B_i, but
that is even slower.
I am wondering if there is an efficient way to perform this type of
multiplication with R?
Thanks in advance!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2013 Nov 22
10
[PATCH v4] x86: properly handle MSI-X unmask operation from guests
...nging the hypercall interface
v2:Totally handled inside hypervisor.
v3:Change some logics of handling msi-x pending unmask operations.
v4:Some changes related to coding style according to Andrew Cooper''s comments
From 51c5b7f1f9c8f319da8adf021b39e18fbd3bf314 Mon Sep 17 00:00:00 2001
From: Feng Wu <feng.wu@intel.com>
Date: Wed, 13 Nov 2013 21:43:48 -0500
Subject: [PATCH] x86: properly handle MSI-X unmask operation from guests
For a pass-through device with MSI-x capability, when guest tries
to unmask the MSI-x interrupt for the passed through device, xen
doesn''t clear the...
2011 Jan 12
2
How to disable using "enter" key to exit the browser in debugging mode
...prompt to debug as follows, it will
eventually jump out before I can do anything.
####### copy starting from this line ##############
test <- function()
{
x<- 5
browser()
y<-4
}
test()
######## end of copy at this line ################
Any suggestions are most welcome!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2010 Sep 24
3
boundary check
...,1] [,2] [,3] [,4] [,5]
[1,] -0.1525543 0.4606419 -0.1011011 -1.557225 -1.035694
is inside the boundary of X or not. I know it's easy to do it with 1-D or
2-D, but I don't knot how to manage it when the dimension is large.
Can someone give a hint? Thanks in advance!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2009 Jan 22
4
Is there a plugin that can autofill(ajax) during user input?
I haven''t done rails in a year, but can someone tell me if there is a
plugin or how much work is it to add an auto fill function like google''s
front page?
Would you just use an observer on the form or is there already a built
in class that can do this?
Thanks!
Feng
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gman...
2010 Oct 12
1
lapply to subsets
...= array(1:30, c(2, 3, 5)))
I wish to calculate the mean of A$a, and A$b w.r.t. their third dimension so
I did
lapply(A,apply,c(1,2),mean)
Now if I still wish to do the above task but take away some burn-in, e.g. do
not take A$a[,,1:2],and A$b[,,1:2] into account. How can I do then?
Thanks!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2010 Sep 07
4
a^c(1:3)
...ther ways of doing this.
And the second question is why I get such result when I put another element
in the exponent part like this,
> a^c(2, 3, 4)
[,1] [,2] [,3]
[1,] 1 81 125
[2,] 8 16 1296
BTW, I have a 64bit R version (2.11) for Linux. Any advice would be
appreciated.
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2009 Nov 05
2
rm(list<-ls()) error
Dear R,
Why rm(list<-ls()) gives an error but rm(list=ls()) not?. I remember the
operator ‘<-’ can be used anywhere...
Thanks!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/
[[alternative HTML version deleted]]
2009 Feb 11
5
How to handle large numbers?
...b=1007, and c=5). R gives me NaN when I
use the following command:
> exp(1000)/(exp(1007)+5)
[1] NaN
I am pretty sure this should be close to zero. My question is whether there
is a general way to solve this kind of question or should I do some settings
before computing?
Thanks in advance!
Feng
--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
[[alternative HTML version deleted]]
2013 Jul 17
1
Re: Hotplug of disk devices in LXC failed with libvirt of version 1.0.2
On 07/17/2013 04:15 PM, Gao feng wrote:
> On 07/16/2013 01:29 PM, Guan Qiang wrote:
>> 于 2013/7/15 17:32, Gao feng 写道:
>>> On 07/15/2013 05:18 PM, hzguanqiang wrote:
>>>> Hi, Gao Feng
>>>>
>>>> I've tried what you said, but still exists the problem:
>>>>
>>...
2003 Mar 05
8
How to draw several plots in one figure?
Hey,
I want to draw several plots sequently, but have to make them dispaly in one
figure.
So how to achieve this?
Thanks.
Fred
2013 Aug 26
1
Re: 回复: How to deal with LXC cgroup access control withapparmor ?
...ble the cgroup in container"
I meant if the user namespace not enabled in kernel ...
thx ,I will try user namespace later. I am not working on x86 and not suer wheather the usernamespace is ok in the kernel I am going to use.
I would try to disable the cgroup in lxc first.
THX to Gao feng .
------------------
止语
------------------ Original ------------------
From: "Gao feng"<gaofeng@cn.fujitsu.com>;
Date: Mon, Aug 26, 2013 05:07 PM
To: "jj"<jj@yuzao.org>;
Cc: "libvirt-users"<libvirt-users@redhat.com>;
Subject: Re: [libvir...
2013 Jul 16
2
Re: Hotplug of disk devices in LXC failed with libvirt of version 1.0.2
于 2013/7/15 17:32, Gao feng 写道:
> On 07/15/2013 05:18 PM, hzguanqiang wrote:
>> Hi, Gao Feng
>>
>> I've tried what you said, but still exists the problem:
>>
>> ubuntu@lxc:~$ vir attach-disk instance-0000002c /dev/dm-0 sdb
>> error: Failed to attach disk
>> error: Unable to c...
2003 Apr 08
5
Help on smooth.spline?
Hey, R-listers
I was recommended to try using smooth.spline function
for estimating 2-Dimensinal curve given a data set.
So will you please tell me where to get this R function?
Or which package provides this function?
Thanks for your point.
Fred
2015 Aug 24
4
Error building llvm
Trying to run make to build llvm, I faced the following error:
Linking CXX shared library ../../lib/libLTO.so
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libLTO.so.3.8.0svn] Error 1
make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make: *** [all] Error 2
So, what's the problem here?
Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department