search for: setdata

Displaying 17 results from an estimated 17 matches for "setdata".

Did you mean: set_data
2010 Jun 09
2
OOP and passing by value
...system and am sincerely grateful for the great effort the product and contributors are delivering. My question is as follows: I am trying to use S4 style classes but cannot write functions that modify an object because paramter passing is by value. For example I want to do this: setGeneric("setData", function(this,fcn,k){ standardGeneric("setData") }) setClass( "test", representation(f="numeric", t="numeric") ) setMethod("setData","test", function(this,fcn,k){ this@t <- as.numeric(seq(-k,k))/(2*k+1) this@f <...
2018 Jul 27
3
SHELL() function Asterisk 13 - can only accept one paramter in string?
...up trying to use system() to call BASH scripts with parameters from Asterisk 13. Turned out under Asterisk 13.22.0 System() DOES work, but only if you do NOT attempt to pass any parameters to the called script. This works, and reliably calls the script: same=>n,System(/bin/bash /usr/src/bash/setData.sh) However, the moment you do this: same=>n,System(/bin/bash /usr/src/bash/setData.sh ${CHANNEL(accountcode)}) you get WARNING[30982][C-00000238] app_system.c: Unable to execute '/usr/src/bash/setData.sh' I therefore tried to use SHELL() to do what I was trying to do with SYSTEM()....
2001 Dec 05
9
Windows testing
R 1.4.0 is now sinking into feature freeze, and we'd like some help testing it under Windows. Duncan Murdoch and Uwe Ligges have already volunteered. I've put a copy of SetupR140.exe at http://www.stats.ox.ac.uk/pub/bdr/RWin Also in that directory is a file TESTING suggesting some tests, not all of which have been run on this build. As the graphics internals have been changed a lot
2006 Sep 24
4
SWIG exceptions
...m with wxImage and the char */unsigned char * thing today and I was going to hand-write the functions to translate between the two. While doing so I decided I''d clean up the SWIG error message to make it more clear. Here''s an example SWIG-generated argument error: in method SetData'', argument 2 of type ''wxImage *'' This seems to require a bit of knowledge about the wxWidgets library and C types. I thought it might be a bit clearer to change these to something like: in method ''set_data'', argument 1 expected ''Wx::Image...
2005 Jul 20
2
unable to call R t-test from Java
...org.omegahat.Environment.DataStructures.numeric rList1 = new org.omegahat.Environment.DataStructures.numeric(3); double[] dList = new double[3]; dList[0] = (double) 1.1; dList[1] = (double) 2.2; dList[2] = (double) 3.3; rList1.setData(dList, true); System.err.println(rList1.toString()); funArgs[0] = rList1 ; System.err.println("\r\n Calling mean and passing an omegahat vector"); Object value = e.call("mean", funArgs); if(value != null)...
2011 Mar 09
1
Getting the source file's name where the custom function is written
...ear R experts, I've written some functions in a few source files (such as main.R, control.R ...). After loading them into R, how do I retrieve which functions are loaded from which source file? For example: main.R has functions: myPrint(), myScan() control.R has functions: setPrinter(), setData() After loading the sources (main.R and control.R) into R, I would want to know that myPrint() and myScan are from main.R while the rest from control.R Many thanks!!! -- View this message in context: http://r.789695.n4.nabble.com/Getting-the-source-file-s-name-where-the-custom-function-is-writt...
2008 Nov 11
0
rdiff-backup update broken?
...ction(*args) File "/usr/lib64/python2.4/site-packages/rdiff_backup/rpath.py", line 1123, in append return self.__class__(self.conn, self.base, self.index + (ext,)) File "/usr/lib64/python2.4/site-packages/rdiff_backup/rpath.py", line 868, in __init__ else: self.setdata() File "/usr/lib64/python2.4/site-packages/rdiff_backup/rpath.py", line 893, in setdata if self.lstat(): self.conn.rpath.setdata_local(self) File "/usr/lib64/python2.4/site-packages/rdiff_backup/rpath.py", line 1470, in setdata_local if Globals.eas_conn: rpath....
2015 Feb 09
2
[LLVMdev] Any mechanism available for link time inlineing?
...are sizeof() (for allocation, passing by value/reference) and offsets of data members. Let's ignore for the moment sizeof related problems and just look at offsets. At the moment if we have class A { private: MyType data; public: MyType &getData() {return data} void setData(MyType &in) {data = in;} }; The above setters/getters can be easily inlined by the compiler to avoid a function call for such a trivial case. /* inside A.h */ class white A { public: MyType &getData() {return data} void setData(MyType &in) {data = in;} }; /* inside A.c...
2002 Feb 25
0
RE: R crashes when .Fortran embeded function, is called twice in R --> solved
...ut of R, > then it fails and crashes the R saying unknown error with Rgui. > > FYI: I got calls to write/print which writes to the logfile > instead to the screen so no question of error due to > printing, I think, I also checked with allocation and > deallocation sequence in setdata and unsetdata resp., it > should work as expected. > > I will be very much thankful to you for helping me resolve > this problem. > > Thanks, > -Jag > > > Jagadish Rangrej ( Statistician ) > CHEO Research Institute, Ottawa, ON > 613-7383951 > -.-.-.-.-...
2002 Mar 19
1
Question re:S4 classes and design; clashing classes?
...ike to be able to "rerun" numerical analyses on potentially interesting subsets, or possibly even predict from current fit models, and have the required objects be part of the orca object. Orca objects could have associated methods: dumpPipeline, buildPipeline, brush/selectData, getData, setData, addPipe, rmPipe. In particular, the Data methods will need to use S4 data objects. Do I simply extend the data classes to add slots for visualization and the requisite parameters and subclass from existing R libraries? (i.e. add slots for both parameters and dispatched functions). Is there a...
2005 May 06
3
Problems setting image data
Hi, I''ve been having some intermittent (but repeatable) problems using Image#set_data. In some cases, I get just a black image drawn after I''ve set a (non-black) image. Other times I get a MSVC++ runtime exception. It happens on the same files at the same time. I''m confident that I''m setting the correct amount of data for the image size. (Note: Ruby 1.8.2,
2007 May 04
0
[1007] trunk/wxruby2/swig: Fixed Wx::Image#scale and rescale signature, also added needed constants.
...TY_NORMAL ) const; </ins><span class="cx"> void SetAlpha(unsigned char * alpha = NULL, bool static_data = false ) ; </span><span class="cx"> void SetAlpha(int x , int y , unsigned char alpha ) ; </span><span class="cx"> void SetData(unsigned char* data ) ; </span></span></pre> </div> </div> </body> </html>
2006 Dec 08
0
Wine release 0.9.27
...DataCache_GetClassID. ole32: Create a cache entry for each format in the data cache to allow ole32: Implement Cache and Uncache for the data cache. ole32: Load cached data in the data cache into a STGMEDIUM type so it can be treated the same as set data. ole32: Implement the SetData function for the data cache. ole32: The advise sink for the data cache should be primed with the passed in aspects value, not an arbitrarily selected value. ole32: Add some tests for the IViewObject, IOleCache2 and IPersistStorage interfaces of the OLE data cache. ole32: Add docum...
2017 Feb 03
0
Wine release 2.1
...ntation before MimeBody implementation. inetcomm: Don't restore base stream position in sub stream Read. inetcomm: Return a new instance of stream in IMimeBody::GetData. inetcomm/tests: Added a helper for creating stream from string. inetcomm/tests: Added more IMimeBody::SetData and GetData tests. inetcomm: Test current encoding in test_SetData. inetcomm: Added support for decoding base64 in IMimeBody::GetData. widl: Accept known type as library name. kernel32/tests: Don't mark win8+ result as broken. ntdll: Check input buffer before serve...
2007 Nov 30
0
Wine release 0.9.50
...for later parsing. inetcomm: Parse headers into a list. inetcomm: Unfold headers. inetcomm: Store a header's parameters as a list. inetcomm: Implement IMimeBody:IsContentType. inetcomm: Implement IMimeBody:[G|S]etCurrentEncoding. inetcomm: Implement IMimeBody:SetData. Jacek Caban (34): mshtml: Reset focus after loading the page in edit mode. mshtml: Remove nsIWebBrowserFocus_Activate useless call. hlink.idl: Added Hlink[Get|Set]SpecialReference declaration. shlwapi: Added SHPackDispParamsV implementation. shlwapi: Added SHPackDisp...
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...ot;text/unicode"); + trans.setTransferData("text/unicode", str, copytext.length * 2); + + var clipid=Components.interfaces.nsIClipboard; + + var clip=Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid); + if (!clip) return undefined; + + clip.setData(trans, null, clipid.kGlobalClipboard); + + return 1; +} + +function copy_to_clipboard() { + var r=copy_ie_clipboard(); + if (r==undefined) { + r=copy_mozilla_clipboard(); + } + if (r==undefined) { + alert("Copy seems to be disabled; maybe you need to change your security settings?...
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...exposed areas. </span><span class="cx"> </span><span class="cx"> h4. See also </span><span class="lines">@@ -1090,10 +1169,10 @@ </span><span class="cx"> This function is similar to "set_data":#Image_setdata and has similar </span><span class="cx"> restrictions. The pointer passed to it may however be @NULL@ in which case </span><span class="cx"> the function will allocate the alpha array internally -- this is useful to add </span><del>-alpha chan...