search for: methods

Displaying 20 results from an estimated 58630 matches for "methods".

Did you mean: method
2010 Jul 20
1
p-values pvclust maximum distance measure
Hi, I am new to clustering and was wondering why pvclust using "maximum" as distance measure nearly always results in p-values above 95%. I wrote an example programme which demonstrates this effect. I uploaded a PDF showing the results Here is the code which produces the PDF file: ------------------------------------------------------------------------------------- s <-
2010 Jun 13
1
S4 classes and S3 generic functions
...The code change is not large, but it has some general implications. Mainly, in applying S3 generic functions to objects from S4 classes, the default recommendation is to define an S3 method for the class, when possible, and then set that definition to be the S4 method as well. The section "Methods for S3 Generic Functions" of the ?Methods documentation in the (new) version has details and points to examples. The text of that section is appended below. John ====================== Methods for S3 Generic Functions: S4 methods may be wanted for functions that also have S3 methods...
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 la...
2006 Feb 18
2
CentOS 4.2 hangs at power-on boot
...ution 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 OSHP methods do not exist 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 executi...
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: bitmapdataobject...
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") end puts "Do I have the Fax method? " + self.methods.include?(''Fax'...
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 onl...
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
2009 May 27
3
Defining functions - an interesting problem
I define the following function: (Please don't wonder about 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 =
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,
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 we...
2007 Nov 14
6
My own methods on model + "extends" problem?
...t; function from the controller. It says that the method doesn''t exists. class UsersController < ApplicationController def index render :text => User.test # Produces the error. end end Additionally, I cannot access the mehod increase! and other methods of the ActiveRecord::Base class, that is extended by the User class. Shouldn''t it be accessible? The User.methods doesn''t display the method I created and I cannot access it. However, other very used methods, like "find" are not shown by User.methods, but they are acces...
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
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:
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 arithmet...
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'',