search for: newobject

Displaying 20 results from an estimated 32 matches for "newobject".

2010 Nov 22
2
Check for is.object
Hello, I am trying to recursively append some data from multiple files into a common object For this, I am using in a loop NewObject <- rbind(NewObject,tempObject) For the first loop, obviously there is no NewObject ... so I wanted to do NewObject <- tempObject[0,] Now when it loops again I want to put the statement do "NewObject <- tempObject[0,]" inside a if statement ... so that it does I can skip it onc...
2011 Oct 31
1
Question about copying reference objects using the initialize method
...reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$methods(initialize = function(...){ ? value <<- 1 ? callSuper(...) }) newObject = myClass$new() newObject$value = 2 copyObject = newObject$copy() copyObject$value = 3 print(newObject$value) print(copyObject$value) 2) However, if the initialize method has arguments, I get an error: myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClas...
2007 Oct 15
0
8 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c libswfdec/swfdec_sound.h test/trace
...2-7.swf |binary test/trace/enumerate2-7.swf.trace | 236 +++++++++++++++++++++++++++++++++ test/trace/enumerate2-8.swf |binary test/trace/enumerate2-8.swf.trace | 236 +++++++++++++++++++++++++++++++++ test/trace/enumerate2.as | 23 +++ test/trace/newobject-paths-5.swf |binary test/trace/newobject-paths-5.swf.trace | 12 + test/trace/newobject-paths-6.swf |binary test/trace/newobject-paths-6.swf.trace | 12 + test/trace/newobject-paths-7.swf |binary test/trace/newobject-paths-7.swf.trace | 12 + test/trace/newobject-paths-8....
2011 Feb 01
1
Help need to define method of an s4 class
...w class slot2 = "vector", slot3 = "vector", slot4 = "vector")) setMethod("print", "MyClass", function(x) { #set up print method for that cat("My Method definition.\n") }) newObject <- new("MyClass", slot1=list(diag(3), diag(3)), slot2="some character", slot3="some character", slot4="some character") print(newObject) newObject Here what is happening is that, if user types "newObject" then the entire structure of this object...
2009 Apr 30
1
stepAICc
Dear R users, Would it be difficult to change the code of stepAIC (from the MASS library) to use AICc instead of AIC? It would be great to know of someone has tried this already. Best wishes Christoph.
2011 Mar 30
3
how about a "<p-" operator?
...line. So I just wondered: was there ever a discussion as to providing some modified version of the "<-" and "->" operators in R to do the reverse? That is, since R does not print the values of a command to the console, what if there were an operator such that newobject <p- somefunction() would do the same as print(newobject <- somefunction()) Any thoughts? Carl
2008 Nov 27
2
1-Pearson's R Distance
...matrix based on an abundance matrix using the 1-Pearson’s R index. Well I told him to look at the proxy package, but there is only Pearson Index. He needs it to perform a clustering. Well, as soon as he told me there proxy only had the Pearson index I thought: “He could just do something like >NewObject<-1-PearsonMatrixObject” But I didn’t tell him that because I’m not sure it’s the same thing, and it probably will generate a strange cluster with the braches ends distant from the base… He told me that Statistica 7.0 has this Index, but he doesn’t own it. So… Is there a way on R to do this cor...
2009 Jun 04
1
About classifier in RWeka
...ss=TRUE) it threw me the error as below: Error in .jnew("weka/classifiers/Evaluation", instances, costMatrix) : Failed to create object of class `weka/classifiers/Evaluation' In addition: Warning message: In .jnew("weka/classifiers/Evaluation", instances, costMatrix) : NewObject ("weka/classifiers/Evaluation","(Lweka/core/Instances;Lweka/classifiers /CostMatrix;)V",...) failed I know there are something wrong in the function of evaluate_Weka_classifier, but I am stuck. Any one can help me out? Is it because the attributes of predictors? then, how ca...
2006 Mar 03
1
Java related (?) problems with RWeka
Hello all, I am attempting to run an R script that makes use of RWeka. I am running SuSE Linux 9.3 with Java 1.5.0_06, R version 2.2.1, Weka 3-4-7, and Rweka 0.2-1. CLASSPATH="/usr/local/weka-3-4-7/weka.jar:/usr/local/JGR/JGR.jar" I receive the error: NewObject("weka/core/Instances","(Ljava/io/Reader;)V",...) failed Exception in thread "main" java.io.IOException: end of line expected, read Token[=], line 1 at weka.core.Instances.errms(Unknown Source) at weka.core.Instances.getLastToken(Unknown Source)...
2013 May 10
0
[LLVMdev] [cfe-dev] "load groups" IR feature to improve C++ devirtualization
On May 9, 2013, at 9:22 PM, Nick Lewycky <nlewycky at google.com> wrote: > On 9 May 2013 19:13, John McCall <rjmccall at apple.com> wrote: > This is not how I understand the [basic.life] rules. The question is whether a pointer value, reference, or name is formally forwarded to point to the new object. Because the dynamic type is different, the pointer value held in 'p'
2006 Dec 21
1
iplots/JGR on OS X 10.4.8
...o no avail. Any pointers are appreciated. > install.packages("JGR",dep=TRUE) > library(JGR) Loading required package: iplots Error in .jnew("org/rosuda/iplots/Framework") : Failed to create object of class `org/rosuda/iplots/Framework' In addition: Warning message: NewObject("org/rosuda/iplots/Framework","()V",...) failed Error: package 'iplots' could not be loaded Exception in thread "main" java.lang.NoClassDefFoundError at com.apple.mrj.MRJPriv.registerAboutHandler(MRJPriv.java:281) at com.apple.mrj.MRJApplicationUtils.registe...
2009 Feb 05
1
JGR extension not working (PR#13501)
...loop deadlocks. 'Yes' is assumed for all dialogs as they cannot be shown without a deadlock, also ievent.wait() is disabled. 2009-02-05 09:04:31.028 R[6886:613] Apple AWT Java VM was loaded on first thread -- can't start AWT. Warning in .jnew("org/rosuda/iplots/Framework") : NewObject("org/rosuda/iplots/Framework","()V",...) failed Exception in thread "main" java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the comma...
2012 Aug 28
5
variable scope
At the end of a for loop its variables are still present: for (i in 1:10) { x <- vector(length=100000000) } ls() will print "i" and "x". this means that at the end of the for loop body I have to write rm(x) gc() is there a more elegant way to handle this? Thanks. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...t;fp; + JSObject *object; + guint i, n_args; + + if (!JS_ValueToECMAUint32 (cx, fp->sp[-1], &n_args)) + return JS_FALSE; + if ((guint) (fp->sp - fp->spbase) < 2 * n_args + 1) { + SWFDEC_ERROR ("not enough stack space"); + return JS_FALSE; + } + + object = JS_NewObject (cx, &js_ObjectClass, NULL, NULL); + if (object == NULL) + return JS_FALSE; + for (i = 0; i < n_args; i++) { + const char *s = swfdec_js_to_string (cx, fp->sp[-3 - 2 * i]); + if (s == NULL) + return JS_FALSE; + if (!JS_SetProperty (cx, object, s, &fp->sp[-2 - 2 *...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2013 May 10
4
[LLVMdev] [cfe-dev] "load groups" IR feature to improve C++ devirtualization
On 9 May 2013 19:13, John McCall <rjmccall at apple.com> wrote: > On May 9, 2013, at 6:34 PM, Nick Lewycky <nlewycky at google.com> wrote: > > I'm looking into how we can improve devirtualization in clang, and there > a language in C++ feature I'd like to take advantage of which would let us > perform elimination of more vptr loads. In this code: > > >
2013 May 22
0
[LLVMdev] [cfe-dev] "load groups" IR feature to improve C++ devirtualization
> where %group must be the result of a call to llvm.load.group. Any two loads > with the same %group value are known to produce the same value. We can then > choose to eliminate the latter of the loads as redundant in GVN, or in the > event of high register pressure we could choose to reload without spilling > to the stack. What mark would GVN leave on the IR for the register
2009 Mar 18
0
JGR install problem
...ithout a deadlock, also ievent.wait() is disabled. Exception in thread "main" Error in .jnew("org/rosuda/iplots/Framework") : Failed to create object of class `org/rosuda/iplots/Framework' In addition: Warning message: In .jnew("org/rosuda/iplots/Framework") : NewObject("org/rosuda/iplots/Framework","()V",...) failed Error: package 'iplots' could not be loaded java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist...
2007 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...on, swfdec_action_call_function, swfdec_action_call_function } }, - [0x3e] = { "Return", NULL }, + [0x3e] = { "Return", NULL, 1, 0, { NULL, NULL, swfdec_action_return, swfdec_action_return, swfdec_action_return } }, [0x3f] = { "Modulo", NULL }, [0x40] = { "NewObject", NULL, -1, 1, { NULL, NULL, swfdec_action_new_object, swfdec_action_new_object, swfdec_action_new_object } }, - [0x41] = { "DefineLocal2", NULL }, + [0x41] = { "DefineLocal2", NULL, 1, 0, { NULL, NULL, swfdec_action_define_local2, swfdec_action_define_local2, swfdec_acti...
2013 May 10
4
[LLVMdev] "load groups" IR feature to improve C++ devirtualization
I'm looking into how we can improve devirtualization in clang, and there a language in C++ feature I'd like to take advantage of which would let us perform elimination of more vptr loads. In this code: Cls *p = new Cls; p->virtual_method1(); p->method_changing_vptr(); // uses placement new to legally change the vptr p->virtual_method2(); // invalid! Cls *q = p;