Displaying 20 results from an estimated 58961 matches for "method".
2010 Jul 20
1
p-values pvclust maximum distance measure
...te an example programme which demonstrates this effect. I
uploaded a PDF showing the results
Here is the code which produces the PDF file:
-------------------------------------------------------------------------------------
s <- matrix(runif(1600,0,1000), nrow=20)
a.res1 <- pvclust(t(s), method.hclust="complete", method.dist="euclidian",
nboot=500)
a.res2 <- pvclust(t(s), method.hclust="complete", method.dist="maximum",
nboot=500)
a.res3 <- pvclust(t(s), method.hclust="complete", method.dist="canberra",
nboot=500)
a.res4 &l...
2010 Jun 13
1
S4 classes and S3 generic functions
A general goal for the next version of R is to make S4 and S3 play
better together.
As mentioned in a previous thread, one limitation has been that S3
generic functions, specifically the UseMethod() call, did not make use
of S4 inheritance when dispatching on general S4 objects.
This has been fixed in a version committed today (updated to rev 52267).
The code change is not large, but it has some general implications.
Mainly, in applying S3 generic functions to objects from S4 classes,...
2016 Aug 26
2
[PATCH] v2v: Use unitless methods for methods which don't change the internal state.
Methods in OCaml which don't take any parameters don't require the
dummy unit arg, ie writing:
method foo = ...
is fine. The reason you might need the unit arg is if you need to
create a closure from the method without calling it, for example if
you need to use the method in a callback.
In l...
2006 Feb 18
2
CentOS 4.2 hangs at power-on boot
...onboard sound
Radeon X300SE PCI-E graphics card
Power-on boot from the install CD also hung, at "running /sbin/loader"
but rebooted correctly into the installer after the reset button was
pressed.
Error dump from dmesg:
Evaluate _OSC Set fails. Status = 0x0005
ACPI-1133: *** Error: Method execution failed [\_SB_.LSTA] (Node
f7f5ff00), AE_AML_OPERAND_TYPE
ACPI-1133: *** Error: Method execution failed [\_SB_.LATA._STA]
(Node f7f001e0), AE_AML_OPERAND_TYPE
ACPI-0158: *** Error: Method execution failed [\_SB_.LATA._STA]
(Node f7f001e0), AE_AML_OPERAND_TYPE
pciehp: Both _OSC and...
2007 Jan 03
0
[ wxruby-Bugs-7549 ] missing ''methods'' section in some class documentation
...was opened at 2007-01-03 05:19
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=7549&group_id=35
Category: None
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: missing ''methods'' section in some class documentation
Initial Comment:
The following classes seem to not have a method''s section in their html docs ...
(see: http://rubyforge.org/pipermail/wxruby-users/2006-December/002835.html)
warning: artprovider.html has no methods
warning: bitmapdataobjec...
2006 Jul 18
2
validate method doesn''t recognize another instance method
All,
I am attempting to do some custom validation on my object.
Here is my validate method:
protected
def validate
puts "Do I have the target_list_ids method? " +
self.methods.include?(''target_list_ids'').to_s
if target_list_ids.nil? || target_list_ids.length == 0
errors.add_to_base("You must choose at least one target list for
this job"...
2007 Aug 30
2
customizing the color and point shape for each line drawn using lattice's xyplot
...scription of what I am trying to do:
I am using the xyplot code below to plot the variable ?MeanBxg? against the
variable ?PercentVarExplained? for all 9 possible combinations of variables
?bdg? and ?bdx?. Within each of these 9 scenarios I am plotting a separate
line for each of up to 9 different methods that I used to estimate the
variable MeanBxg. These methods are identified by the numeric variable
called ?Method.? Giving me one plot with 9 figures and each of the figures
contains 9 lines.
My problem arises because I would like to repeat the creation of this plot 8
times, in each instance on...
2010 Feb 26
2
New methods for generic functions show and print : some visible with ls(), some not
Dear all,
I'm trying to understand the S4 way of object-oriented programming, but I
still can't grasp completely what R is doing. I have a class definition for
a class called PM10Meteo, and I set a initializer function. next, I include
a show method and a print method as shown below.
setClass( Class="PM10Meteo",...) # end setClass
setMethod ("initialize",signature="PM10Meteo",...) # end setMethod
########
# Show Method
#
setMethod("show","PM10Meteo",
function(object){
...
} # end functio...
2009 May 27
3
Defining functions - an interesting problem
...the use of this function, this is just a
simplified version of my actual function. And please don't spend your
time in finding an alternate way of doing the same as the following does
not exactly represent my function. I am only interested in a good
explanation)
> f1 = function(x,ties.method="average")rank(x,ties.method)
> f1(c(1,1,2,4), ties.method="min")
[1] 1.5 1.5 3.0 4.0
I don't know why it followed ties.method="average".
Anyways I randomly tried the following:
> f2 = function(x,ties.method="average")rank(x,ties.method=ties.met...
2020 Mar 19
0
[nbdkit PATCH 1/2] sh, eval: Cache .can_zero and .can_flush
...next patch. Furthermore, we end up duplicating the
caching that nbdkit itself does, because it would be a layering
violation for us to have enough information to call into
backend_can_flush().
Fixes: 05c5eed6f2
Fixes: 8490694d08
Signed-off-by: Eric Blake <eblake@redhat.com>
---
plugins/sh/methods.c | 102 +++++++++++++++++++++++++++----------------
tests/test-eflags.sh | 44 +++++++++++++++++--
2 files changed, 105 insertions(+), 41 deletions(-)
diff --git a/plugins/sh/methods.c b/plugins/sh/methods.c
index 56e2d410..cce143de 100644
--- a/plugins/sh/methods.c
+++ b/plugins/sh/methods.c
@...
2010 Nov 23
1
Reference Classes: removing methods -> implications for objects/instances of that class
Dear list,
just to make sure that I understand 'unregistering' methods for S4 reference
classes correctly:
If I registered a method and want to 'unregister' (i.e. remove) this method
again, objects/instance created of the respective class still feature the
removed method until I do an explicit reassign ('my.instance <-
getRefClass("Classname"...
2012 Sep 26
2
specifying arguments in functions and calling functions, within functions
Esteemed R UseRs,
Regarding specifying arguments in functions and calling functions
within functions:
## beginning ##
## some data
ex <- rnorm(10)
ex[5] <- NA
## example function
Scale <- function(x, method=c("mean", "median")) {
scl <- method
scl(x)
}
## both return NA
Scale(ex, method=median)
median(ex, na.rm=FALSE)
## both return the median
Scale(ex, method="median")
median(ex, na.rm=TRUE)
## 1. Why does the use of apostrophes have this effect when calling...
2009 Jul 29
1
RFC: methods() and showMethods() {was "debug"}
...ead, on purpose)
>>>>> "RobG" == Robert Gentleman <rgentlem at fhcrc.org>
>>>>> on Mon, 27 Jul 2009 16:55:50 -0700 writes:
RobG> Hi, I just committed a change to R-devel so that if
RobG> debug is called on an S3 generic function, all methods
RobG> will also automatically have debug turned on for them
RobG> (if they are dispatched to from the generic).
very nice.
RobG> I hope to be able to extend this to S4 and a few
RobG> other cases that are currently not being handled over
RobG> the next few w...
2007 Nov 14
6
My own methods on model + "extends" problem?
Hello.
I have a UsersController and a Model called User with a "new" method,
like this:
class User < ActiveRecord::Base
def test
return 1 #I can do anything and return any data, the
problem continues.
end
end
The problem is that I cannot access my "test" function from the
controller. It says that the method doesn''t exists....
2008 Nov 10
3
to_xml and helper methods
Hi,
I have an array with objects and I want to generate an XML like:
<objects>
<object>
<category_id>1</category_id>
<helper-method>result 1</helper-method>
</object>
<object>
<category_id>2</category_id>
<helper-method>result 2</helper-method>
</object>
</objects>
The helper method generates some urls and it needs as an arguments the
object.
What wo...
2018 May 03
3
RFC: virtual-like methods via LLVM-style RTTI
...Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file provides LLVM_VIRTUAL() and related macros for creating virtual
// methods that demultiplex via LLVM-style RTTI.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_SUPPORT_VTABLE_H
#define LLVM_SUPPORT_VTABLE_H
#include <functional>
namespace llvm {
//===--------------------------------------------------------------...
2007 Sep 03
1
Dovecot problem
Helo all,
Yesterday dovecot began droping connections and there is nothing
conclusive in the log file, just the messagens below:
Sep 2 11:43:57 relay01 dovecot: pop3-login: Disconnected: Inactivity:
method=PLAIN, rip=200.152.100.77, lip=10.0.3.1
Sep 2 11:44:02 relay01 dovecot: pop3-login: Disconnected: Inactivity:
method=PLAIN, rip=200.204.69.20, lip=10.0.3.1
Sep 2 11:44:19 relay01 dovecot: pop3-login: Disconnected: Inactivity:
method=PLAIN, rip=201.20.236.248, lip=10.0.3.1
Sep 2 11:44:21 relay01...
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to
call a helper method of a different model (model B). Then I need the
helper method of B to call a helper method of model C.
I tried using "include" and "require" and using namespaces, but I got
"undefined method". What is the way to do it?
--
Posted via http://www.ruby-forum.com/.
2004 Jul 06
1
questions about setMethod("Arith", ...)
Hi,
we have some questions concerning the definition of new arithmetic methods.
In our package "distr" (on CRAN) we define some new arithmetic methods
for "+", "-", "*", "/".
After loading "distr" the corresponding arithmetic methods work. Now, if
we define a new
class and also a new method for one of the arithme...
2008 Jan 02
1
assert_recognizes with requirements => {:method => something}
I''m having trouble with my routing, and was wondering if anyone else
had seen something similar.
I''ve got these two routes:
map.login ''/login'', :controller => ''sessions'', :action =>
''new'', :requirements => { :method => :get }
map.connect ''/login'', :controller => ''sessions'', :action =>
''create'', :requirements => { :method => :post }
and I have these tests:
a. assert_recognizes({:controller => ''sessions'', :action => ...