Displaying 20 results from an estimated 6000 matches similar to: "Scope"
2007 Jan 02
2
R modules
Hi All,
I'd like to know what is the best way to organize R code in multiple modules=
and files. The R code we are writing is too much for a single file. Besides=
, there are a lot of reusable functions we'd like to factor out. But writing=
a package for that is quite an over-kill and might be too inflexible.
So what is the best way to organize R code into multiple files and reusable=
2006 Dec 26
4
vectorizing an iterative process.
Hi Everyone,
I am stuck with a simple problem. Suppose I have a vector x, and I want
to calculate y[i]=3Dx[i+1]-x[i], it is very easy. I just need to write
y<-x[2:length(x)]-x[1:length(x)-1].
Now if I know y, and want to know the vector x defined by
x[i]=3Dx[i-1]+y[i-1] for all i, how can I do this without a loop?
Thanks,
Geoffrey
PS. Sorry if you see a duplicate message. The previous
2007 Jan 28
3
Inverse fuction of ecdf
Hi Everyone,
I want to generate some random numbers according to some empirical
distribution. Therefore I am looking for the inverse of an empirical
cumulative distribution function. I haven't found any in R. Can anyone
give a pointer?
Thanks,
Geoffrey
_______________________________________________________=0A=
=0A=
=0A=
The information in this email or in any file attached
2006 Dec 29
1
Difference of array and vector
Hi,
I am really new at R. Does anyone know what is the real difference of
vector and array, except that many operations that expect an array does
not work on a vector?
Thanks,
Geoffrey
_______________________________________________________=0A=
=0A=
=0A=
The information in this email or in any file attached hereto is=0A=
intended only for the personal and confidential use of the individual=0A=
2015 Jun 02
2
GlusterFS 3.7 - slow/poor performances
hi Geoffrey,
Since you are saying it happens on all types of volumes,
lets do the following:
1) Create a dist-repl volume
2) Set the options etc you need.
3) enable gluster volume profile using "gluster volume profile <volname>
start"
4) run the work load
5) give output of "gluster volume profile <volname> info"
Repeat the steps above on new and old
2013 Nov 06
0
[LLVMdev] configparser and ConfigParser are different
Okay, I've traced it to a bug in configparser, which on my python
2.7.4 system is a backport of configparser from python 3. Here is a
clean patch that works around the problem.
Geoffrey
On Wed, Nov 6, 2013 at 10:24 AM, Geoffrey Irving <irving at naml.us> wrote:
> LLVM builds with me on the release_33 branch, but fails on trunk. I
> bisected the problem to this commit:
>
>
2015 Jun 01
1
GlusterFS 3.7 - slow/poor performances
Dear all,
I have a crash test cluster where i?ve tested the new version of GlusterFS (v3.7) before upgrading my HPC cluster in production.
But? all my tests show me very very low performances.
For my benches, as you can read below, I do some actions (untar, du, find, tar, rm) with linux kernel sources, dropping cache, each on distributed, replicated, distributed-replicated, single (single
2007 Oct 01
1
have_tag and line numbers
When I''ve got a view example like this:
1: response.should have_tag "fieldset#children" do
2: with_tag "child"
3: end
If it can''t find ''child'', the error seems to come back as my_spec.rb:1
instead of my_spec.rb:2.
Has anyone else experienced this? I just spent a while tracking down what I
assumed was a problem in my have_tag only to
2007 Oct 05
1
Rake & Story Runner
So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
using ''ruby path/to/story.rb''), I''m looking to see how I''d integrate that
with our build.
Am I right in assuming that there''s no Rake integration yet, or a report? I
couldn''t see any. As far as I can see, "rake spec" doesn''t run or report
on my
2007 Sep 07
4
fixtures in before(:all)
I was planning on using a fixture within a description that didn''t modify
the fixture, so I put it in a before(:all) block:
describe "Customer", "xml" do
fixtures :customers
before(:all) do
one = customers(:one)
end
# ...
As a result, I got this message:
1)
NoMethodError in ''Customer xml before(:all)''
You have a nil object when you
2007 Sep 05
4
False Positives and Autotest on New Folders
False Positives
I just discovered how easy it was to create a false positive when I, trying
my first RSpec test, did this:
ob.should eql?(''foo'')
instead of:
ob.should eql(''foo'')
or:
ob.should == ''foo''
As far as I can see, this is roughly equivalent to:
ob.should false
Neither eql?(''foo'') nor false causes the spec
2019 Feb 05
1
Question about Sizing of Samba Linux Server
Hello all,
I'm jumping into this mailing list because my question still unsolved after
Googling the web.
Do you know any performance of sizing recommendations about Samba 4.7.1 ?
For few informations :
2vCPUs / 1 Core
8Go of RAM
140 simultaneous Windows users / 250 at most
20 NFS shares mounted via fstab
This question because my RAM is all eated up in the buffer/cache (normal
according
2013 Nov 06
2
[LLVMdev] configparser and ConfigParser are different
LLVM builds with me on the release_33 branch, but fails on trunk. I
bisected the problem to this commit:
commit b49fb7bcd5001567d2da06f6a6e1c7ba79649e1b
Author: Daniel Dunbar <daniel at zuster.org>
Date: Wed Aug 14 23:15:39 2013 +0000
[llvm-build] Make Py3 compatible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 188424
91177308-0d34-0410-b5e6-96231b3b80d8
2014 Mar 26
3
[LLVMdev] [cfe-dev] computing a conservatively rounded square of a double
On 03/26/2014 11:36 AM, Geoffrey Irving wrote:
> I am trying to compute conservative lower and upper bounds for the
> square of a double. I have set the rounding mode to FE_UPWARDS
> elsewhere, so the code is
>
> struct Interval {
> double nlo, hi;
> };
>
> Interval inspect_singleton_sqr(const double x) {
> Interval s;
> s.nlo = x * -x;
> s.hi = x *
2007 Oct 04
1
PUT- or POST-ing xml
I''d like to write a test of a REST service wherein XML is submitted as the
request entity.
In Test::Unit on Rails, this seems to be possible in an integration test,
but not in a functional test. RSpec uses the Rails functional test
framework, as far as I can tell, so it suffers the same result; it tries to
symbolize the keys of the ''parameters'' hash, except the
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an
element? I think this code works in IE but not FF:
myElement.fireEvent(''onclick'');
I really only care about IE and FF, but anything else is a bonus. I
didn''t see anything in prototype/scriptaculous for this, but I might
have missed it. Thanks.
Joe Athman
2010 Jan 05
5
mean for subset
Hello, does anyone know how to take the mean for a subset of observations?
For example, suppose my data looks like this:
OBS NAME SCORE
1 Tom 92
2 Tom 88
3 Tom 56
4 James 85
5 James 75
6 James 32
7 Dawn 56
8 Dawn 91
9 Clara 95
10 Clara 84
Is there a way to get
2006 Jul 20
2
Carrying model date from one page to the next
I am working on a crude first-go-round-in-rails shopping cart and
can''t figure out for the life of me the best way to do this. I have a
shopping cart that has one page during the checkout that handles the
address information, then the next handles the actual credit card
information. How do I take the information from the address form and
keep it alive long enough to put it in to
2009 Apr 20
1
Sharing variables in seperate workspace
Hi all.
I'm for the first time trying to make a library in R 2.8.1 on Ubuntu
Linux. The library is very simple, R functions just need to share a
variable (that is defined in the R code) and maybe functions and export
functions for the user to .GlobalEnv. This variable should only be
directly accessible from the global workspace (without change of
environment) via a hereto dedicated function.
2006 Jul 05
10
Google/Netflix Like Tooltips
I need to have a toolip-like object which has dynamic content in it. I
plan on using scriptaculous with an ajax call to retrieve the content,
but I would like to make the popup/tooltip/balloon text look as nice as
possible. Does anyone have any examples or anything useful to create a
popup like the ones that Google and Netflix have? I''d like to have one
which must be