Displaying 20 results from an estimated 2400 matches similar to: "Expectation of E(x^1/2)"
2010 Feb 10
3
Sampling from Bivariate Uniform Distribution
Hello all!!!
1) I am wondering is there a way to generate random numbers in R for Bivariate Uniform distribution?
2) Does R haveĀ built-in function for generating random numbers for any given bivariate distribution.
Any help would be greatly appreciated !!
Good day!
Haneef Anver
[[alternative HTML version deleted]]
2009 Dec 01
2
[LLVMdev] MachineMemOperands
On Tuesday 01 December 2009 15:04, Chris Lattner wrote:
> > The size is actually calculated from an EVT nearly everywhere (and
> > where it's not it should be easy to add). We could just replace the
> > size with the EVT and have more information.
>
> It sounds like you're looking for a property of an instruction, not an
> operand. If you're looking for
2009 Dec 02
0
[LLVMdev] MachineMemOperands
On Dec 1, 2009, at 1:10 PM, David Greene wrote:
> On Tuesday 01 December 2009 15:04, Chris Lattner wrote:
>
>>> The size is actually calculated from an EVT nearly everywhere (and
>>> where it's not it should be easy to add). We could just replace the
>>> size with the EVT and have more information.
>>
>> It sounds like you're looking for a
2010 Dec 22
3
Estimate "between-axes" vs "within-axes heterogeneity of multivariate matrices
Hi!
My question(s) in the end might be silly but I am no expert on this, so here
it goes:
Noy-Meir (1973), Pielou (1984) and a few others have pointed to non-centered
PCA being in some cases useful. They clearly explain that "it is the case"
when multi-dimensional data display distinct clusters (which have zero, or
near-zero, projections in some subset of the axes) and the task is
2009 Dec 01
0
[LLVMdev] MachineMemOperands
On Dec 1, 2009, at 11:43 AM, David Greene wrote:
> On Tuesday 01 December 2009 12:14, Dan Gohman wrote:
>> On Dec 1, 2009, at 9:03 AM, David Greene wrote:
>>> On Tuesday 01 December 2009 11:01, Chris Lattner wrote:
>>>> What are you trying to accomplish? What would use this?
>>>
>>> I am trying to determine whether a MachineMemOperand is a vector
2009 Dec 01
2
[LLVMdev] MachineMemOperands
On Tuesday 01 December 2009 12:14, Dan Gohman wrote:
> On Dec 1, 2009, at 9:03 AM, David Greene wrote:
> > On Tuesday 01 December 2009 11:01, Chris Lattner wrote:
> >> What are you trying to accomplish? What would use this?
> >
> > I am trying to determine whether a MachineMemOperand is a vector
> > operand.
>
> Again, what's that for? If you're
2007 Feb 18
1
get() method in custom expectation matcher?
I''m trying to write a custom expectation:
controller.should_require_login_for(:action_name).
I''m using the example in the docs for ''Custom Expectation Matchers'' but I''m
unsure how to make the get() method available to my ShouldRequireLogin
class. I''ve tried requiring spec_helper but no joy.
can anyone help?
thanks
--
View this message in
2006 Sep 23
1
Fwd: [PATCH] Remove warning in expectation.rb
Begin forwarded message:
> From: Xavier Shay <xshay at rhnh.net>
> Date: 23 September 2006 05:53:57 BDT
> To: james.mead at mail.com
> Subject: [PATCH] Remove warning in expectation.rb
>
> Hi James,
> Please find below a one line addition to lib/mocha/expectation.rb
> to remove the following warning:
>
> mocha-0.3.2/lib/mocha/expectation.rb:32: warning:
2007 Jan 27
1
should expectation syntax has changed
This is just a note in case anyone else is using the (I believe
experimental) custom expectations.
The custom expectation I had written used the custom ''met_by?''
function, which now appears to have been replaced by the ''matches?''
function to determine whether the expectation is met.
Steve
2006 Oct 10
0
Is anybody using a block to verify arguments passed to an expectation?
For example...
def test_should_receive_at_least_three_arguments
object = mock
object.expects(:foo).with { |*args| args.size >= 3 }
#=> Rather pointless expectation to ensure that we get at least three arguments
end
If possible, I''d like to remove/rename this functionality. Instead,
I''d like to be able to set an expectation that checks for specified
arguments _and_ a
2010 Feb 18
0
Chisq test for truncated count data and estiamte the expectation value
Dear all,
I have some questions for count data.
First, I want to calculate the expectation value and variance from truncated
data when I assume that the truncated data follow Poisson or negative
binomial distribution.
For example,
N freq
1 30
2 35
3 26
4 8
5 0
6 2
7 0
The mean of N is 2.2. If the data follows Poisson distribution, the
estimated lambda is 1.9.
Is there any package to
2010 Jul 13
2
[Rspec] Difference between stub and message expectation with any_number_of_times
I''m wondering what''s the difference between stub and message expectation
with any_number_of_times, for example:
myMock = mock("mymock")
myMock.stub!(:is_a?).with(MyClass).and_return(false)
and
myMock = mock("mymock")
myMock.should_receive(:is_a?).with(MyClass).any_number_of_times.and_return(false)
because is_a? may not be called at all, it just like a
2007 Feb 20
1
having should_receive expectation for things that happen in setup
Hi!
The following example doesn''t work for me: http://pastie.caboo.se/41732
However, if the call to msg() happens in the specify block after the
expecation and not in the setup, it will pass.
Why is this? I thought the setup method was there to actually
''construct'' the context and the specifications are some kind of
"postconditions" that only need to be
2016 Feb 17
0
[Bug 1047] Creating expectation entry using conntrack tool results in ESHUTDOWN
https://bugzilla.netfilter.org/show_bug.cgi?id=1047
--- Comment #5 from Asbj?rn Sloth T?nnesen <asbjorn at asbjorn.it> ---
Ping
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20160217/e911c053/attachment.html>
2013 Dec 06
0
Re: [PATCH] builder: adapt test-virt-builder-list.sh output expectation
On Fri, Dec 06, 2013 at 03:00:41PM +0100, Pino Toscano wrote:
> ee0e56f43e55307fefa1d04505ed6477d604d220 slightly changes the output of
> --list but test-virt-builder-list.sh has not been updated accordingly.
>
> Adapting the expected output makes test-virt-builder-list.sh pass again.
> -os-version: phony-debian
> +OS version: phony-debian
Now I look
2007 Apr 03
5
small suggestion - once method on Expectation
I find that a lot of times I want to ensure a method gets called
exactly once, for example when testing caching or eager loading. What
does the list think of adding this little humane method to
Mocha::Expectation?
def once
times(1)
self
end
which means this:
def test_should_only_grab_post_once_from_the_cache
Post.expects(:get_cache).with(google_vs_yahoo.id).times(1)
2011 Dec 02
2
problem setting expectation for test with delayed::job
I''ve got something like this:
# post_observer.rb
after_create
# ...stuff
Delayed::Job.enqueue(PostSharer.new(post, post.user))
end
...
# post_sharer.rb
class PostSharer < Struct.new(:post, user)
def perform
# Delayed::Job calls .perform on the object passed into enqueue
end
end
# post_controller_spec.rb
it "shares the post" do
2013 Dec 06
2
[PATCH] builder: adapt test-virt-builder-list.sh output expectation
ee0e56f43e55307fefa1d04505ed6477d604d220 slightly changes the output of
--list but test-virt-builder-list.sh has not been updated accordingly.
Adapting the expected output makes test-virt-builder-list.sh pass again.
---
builder/test-virt-builder-list.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builder/test-virt-builder-list.sh
2011 Oct 14
3
[Bug 757] New: SIP connection helper not setting RTCP conntrack expectation
http://bugzilla.netfilter.org/show_bug.cgi?id=757
Summary: SIP connection helper not setting RTCP conntrack
expectation
Product: netfilter/iptables
Version: linux-2.6.x
Platform: i386
OS/Version: Ubuntu
Status: NEW
Severity: normal
Priority: P5
Component: ip_conntrack
2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation
method .mock, which returns the original mock associated with an
expectation.
It looks really handy for writing nice all-in-one mocks like:
mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock
So I started playing around with mocha and found I could actually
already do this!