similar to: .C help

Displaying 20 results from an estimated 2000 matches similar to: ".C help"

2007 Feb 20
1
baseline fitters
I am pretty pleased with baselines I fit to chromatograms using the runquantile() function in caTools(v1.6) when its probs parameter is set to 0.2 and its k parameter to ~1/20th of n (e.g., k ~ 225 for n ~ 4500, where n is time series length). This ignores occasional low- side outliers, and, after baseline subtraction, I can re-adjust any negative values to zero. But runquantile's
2012 Mar 15
4
replicating C example from the Extensions Manual problem
Dear R People: Here is something that I am sure is very simple. I'm just trying to re-create the C convolution example in the Extensions manual. Here is the subroutine: void convolve(double *a, int *na, double *b, int *nb, double *ab) { R_len_t i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++) ab[i] = 0.0; for(i = 0; i < *na; i++) for(j = 0; j < *nb; j++) ab[i + j] += a[i] *
2004 Feb 01
4
I can't make .C(...) web-page example.
Hi everyone! I'm trying to lear how to call external C code in R but even the R help web-page example is drive me crazy. I copy-paste the example at: http://stat.ethz.ch/R-manual/R-patched/doc/manual/R-exts.html#Interface%20functions%20.C%20and%20.Fortran here is the example: void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0;
2005 Sep 06
5
Good Polycom Dealer?
Could any of you provide me information on a good Polycom phone dealers to utilize. One who provides firmwares ..etc Thank you! Kenny ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/
2005 Oct 26
1
Borland C++ and [R] dyn.load() for windows
Hi, I compiled a C program file on Borland C++ 5.5 compiler to get one dll output (as instructed in the file readme.package). The C program file is just the example on page 31 of "writing R extensions": void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++) ab[i] = 0.0; for(i = 0; i < *na; i++) for(j = 0; j
2010 Apr 13
2
Getting started with .C
Jeff Brown wrote: > > Hi, > > I'm trying to learn to use .C, which lets one invoke compiled C code from > within R. To do that, one has to first get the C code into R as a shared > object, which (I think) means first compiling it (with COMPILE or SHLIB) > and then loading it (with dyn.load()). > I would suggest taking it a step further and building an R package
2004 Aug 04
1
load shared object
Hi all, i have some problem in using shared objects. I tried the example found in "Writing R Extension", pg. 33 I used the .c file prova.c : ------------------------------------------------------------------- #include <R.h> #include <Rinternals.h> void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j , nab = *na + *nb - 1; for (i = 0; i < nab;
2005 Sep 08
2
Re-evaluating the tree in the random forest
Dear mailinglist members, I was wondering if there was a way to re-evaluate the instances of a tree (in the forest) again after I have manually changed a splitpoint (or split variable) of a decision node. Here's an illustration: library("randomForest") forest.rf <- randomForest(formula = Species ~ ., data = iris, do.trace = TRUE, ntree = 3, mtry = 2, norm.votes = FALSE) # I am
2008 Apr 16
1
Load the shared object/DLL
Dear All, I have written a function in c (in a file named 'a.c') as follows, void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++) ab[i] = 0.0; for(i = 0; i < *na; i++) for(j = 0; j < *nb; j++) ab[i + j] += a[i] * b[j]; } Then, I created a shared file in the Windows, R CMD SHLIB -d -o
2005 Sep 04
2
HELP - How Do I Separate incoming channels from the others on a PRI
Okay, here is the background. I have a PRI with 15 active channels on it. I originally setup all of them in group=1 and all outgoing and incoming calls used this group. The phone number that I have associated with these channels ends with 750 and that is how I direct the calls. i.e. In my extensions.conf I have: exten => 750,1,Dial(SIP/120,20) All this works fine. Now I have the need
2005 Sep 18
1
Wine07252005 spooler problem
Hi, I installed Wine07252005, my printer is EPSON LX 300X, it's CUPS, the name is EPSON9Pin. I tested it with a simple Delphi program and have two problems: 1) If i print using a report builder like RBuilder, it prints quite well, but the font does look good in the print out. 2) If I use spooler to print, like following: if StartDocPrinter(PrnHandle, 1, @DocInfo) = 0 then begin
2005 Sep 08
1
Multiple Line Appearances / Why use this?
I apologize for the double post. I am curious as to what the usefullness is of the multiple line appearance feature on Polycom phones. I setup our phones to register one line per extension but I hear the IP501's can do three line appearances. Why and how could this feature be applied? Thanks again all. Kenny ______________________________________________________ Click here to
2005 Sep 22
1
Descriptive statistics for tables
I have a lot (more than one hundred) of files with tables of the same kind (quadratic, same size) and I want to obtain some statistics for every position on them. Therefore, as a result I want another table. I import every table, and create an object “read.table” for it, then I have try to create a “list” or a “data frame“ and directly utilize some functions like sd( ) without success, because it
2004 Apr 07
1
loading c code in windows ambient
Dear all, I'm studing how to include .c code in my .r functions . In the R-exts.pdf manual I have found the following code. At one point the author write "called from R by"... How can I load a .c file on R? ( I am using a xp windows as so.) Thank you ale void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++)
2005 Sep 28
3
is it possible to form matrix of matrices...and multiple arrays
Dear sirs, 1...........Kindly tell me is it possible to form a matrix which contains a no of matrices.. for eg.. if a,b,c,d are matrices.... and e is a matrix which contains a,b,c,d as rows and columns.. 2..........Is it possible to form array of array of arrays for eg.. "A" contains two set of arrays (1,2)...and each A[1] and A[2] individually contains two set of arrays I tried like
2005 Oct 04
1
Strange Problem
Hi I am facing a strange problem. I have integrated speex codec's narrowband mode in my SIP based server. Then I tried to integrate the wideband mode. But the program crashes mysteriously. My encode and decode codes for wide band mode are exact similiar to that of narrowband, except the mode initialization, where I put "speex_wb_mode" instead of "speex_nb_mode". My
2005 Sep 29
14
Draggables and overflow div''s revisited
I have two scrollable div''s (overflow:auto), one with a list of elements (the source) and the other is the drop target (dest). I''ve enabled ghosting so that the drag element gets out of the scrollable box (good). Interesting, at least on Firefox, the ghosted drag ends up going ''under'' the destination div when I drag it. No amount of z-order fidding seems to
2006 Dec 13
3
Error to install fMultivar package
Hi, I tried to install fMultivar package but an error occurs that I could not understand. (I've been worked with linux / Ubuntu 6.06 LTS) > install.packages("fMultivar") Warning in install.packages("fMultivar") : argument 'lib' is missing: using /usr /local/lib/R/site-library --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk
2005 Sep 10
1
PRI echo
Hi, My configuration is pri----*(te405p)---iaxclient. My * version is 1.0.7 running on tyan dual opteron board. I have several problems. 1) inbound echo For outbound call(iaxclient-->pri), there is almost no echo. But for inbound(pri-->iaxclient), I can hear distinct echo. Can Sangoma a104 or digium te406p help this problem? 2)Today i received te406p. I know T1/E1 jumper. But how can i
2005 Apr 02
1
Survey of "moving window" statistical functions - still looking f or fast mad function
Hi, First, let me thank Jaroslaw for making this survey. I find it quite illuminating. Now the questions: * the #1 solution below (based on cumsum) is numerically unstable. Specifically if you do the runmean on a positive vector you can easily get negative numbers due to rounding errors. Does anyone see a modification which is free of this deficiency? * is it possible to optimize the