similar to: Call R program from C++ code

Displaying 20 results from an estimated 3000 matches similar to: "Call R program from C++ code"

2007 Jan 18
5
how to get the index of entry with max value in an array?
Hi all: A short question: For example, a=[3,4,6,2,3], obviously the 3rd entry of the array has the maxium value, what I want is index of the maxium value: 3. is there a neat expression to get this index? Thank you! Best, Feng [[alternative HTML version deleted]]
2006 Dec 04
2
ask for help
Dear Sir I would appreciate recieving the manul instruction of the program foe geochemical calculations.please what are the requirmentsof using the program Thanks Tanat university faculty of science , geology department ,tanta Egypt Prof.Mohamed Fouad Ghoneim Ph.D- D.Sc. Head of Geology Department Faculty of Science Tanta University, Egypt www.profghoneim.tk
2010 Apr 26
1
RServe across network
Hi, I am trying to connect to RServe across a network. I had put RServe on my local machine and it worked just fine. When am try to connect to it across a network - it is able to go through the handshake and get in. However , when it gets to the 'request' method in the RTalk class, it hangs. Any idea what is happening? Any inout much appreciated. Nupur [[alternative HTML version
2005 Feb 11
1
Help concerning Lasso::l1ce
Hi, First, when I try the example Prostate with bound 0.44 (as in the manual), I got a different result: > l1c.P <- l1ce(lpsa ~ ., Prostate, bound=0.44) > l1c.P .... Coefficients: (Intercept) lcavol lweight age lbph svi 1.0435803 0.4740831 0.1953156 0.0000000 0.0000000 0.3758199 lcp gleason pgg45 0.0000000 0.0000000
2007 May 10
1
anyone konw Polyclass package in R?
Hi everyone: Polyclass is a polytomous logistic regression model using linear splines and their tensor products. It provides estimates for conditional class probabilities which can then be used to predict class labels. I know there is Polyclass package in S-plus. So I'm wondering if there is a corresponding package in R? I have been searching for it for quite a while, but still
2007 May 31
1
how to preserve trained model in LDA?
Hi all: I'm developing an application in which I use standard data to train the model in LDA and use the trained model to predict on test data. I can't train the model every time when I do prediction. So I need to save the trained model onto disk after the first training. Does anybody have idea about this? You help is highly appreciated. Best Regards Feng
2009 Mar 31
2
scope of variables in R
I need to allocate (using C nomenclature) a set of "global" variables, some integer scalars and some double vectors. I have placed the name of such variables in the file containing the main script and the called functions: # ---------------------------------------------------------------------------- # --------------------------- GLOBAL DATA & CONSTANTS ----------------------
2009 Nov 12
2
Problems building package at CRAN
Hello, I submitted the package RcppTemplate to CRAN a couple of weeks ago but the Mac OS X binary has not appeared, and the person in charge of that process (Simon) suspects that the problem may be due to a "nested DESCRIPTION file" so that "Package:" becomes RcppTemplateRcppTemplate, or something like this. Can somebody explain what a nested DESCRIPTION file is so I can
2007 Jan 01
4
if ... problem with compound instructions
I am having problems with the 'if' syntax. I have an n x 4 matrix, X say. The first two columns hold x, y values and I am attempting to fill the second two columns with the quadrant in which the datapoint (x, y) is and with the heading angle. So I have two problems 1) how to do this elegantly (at which I've failed as I can't seem to vectorize the problem) and 2) how to
2006 Jul 24
2
persistent C++ objects
Hi, I am trying to create an R interface for Dynare++ [1], a k-order solver for rational expectation models. I would like some advice on how to glue the C++ code to R. In C++, it works the following way: - a DynareModelEq object is initialized with the formulas, parses them and performs k-order symbolic expansions - the user calls a member of this object multiple times with parameter
2007 Jan 10
3
Fractional brownian motion
Dear All; I have used fbmSim to simulate a fbm sequence, however, when I tried to estimate the Hurst effect, none of the nine procedures gave me an answer close enough to the real value, which is 0.5 (n=1000). So, would you please advice, 1. which is the best method to estimate the H among the 9 mehods, R/S, higuchi or Whittle? 2. how to choose the levels (default=50), minnpts, cutoff values or
2007 Jun 06
3
C function with unknown output length
Hi all, Could anyone point me to one or more examples in the R sources of a C function that is called without knowing in advance what will be the length (say) of the output vector? To make myself clearer, we have a C function that computes probabilities until their sum gets "close enough" to 1. Hence, the number of probabilities is not known in advance. I would like to have an
2011 Jul 12
1
What's wrong with my code? (Edited version-added my data)
I've written out codes for one particular file, and now I want to generate the same kind of graphs and files for the rest of similar data files. For example, a file "8.csv" would look like such: enc_callee inout o_duration type A out 342 de B in 234 de C out 132 de E in 111 de A in 13 cf H in 15.7 cf G out 32 de A out 32 cf I in 14 de K in 189 de J out 34.1 cf B in 98.7 de H out
2009 May 21
5
Authenticating with /etc/passwd
I am trying to do authentication with /etc/passwd and something is not working right for me. Pls help! When i try to authenticate via pop3, I get: -ERR Authentication failed. In the logs, I get: May 21 11:14:07 Info: auth(default): client in: AUTH 1 PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=110 rport=32774 resp=AGp1bmUAU0lORzNlcnQ= May 21 11:14:07 Info: auth(default):
2017 Nov 13
3
Where to get support for Rserve?
Hello, I'm using Rserve with Java and although it works OK for 50 or 60 requests, eventually Rserve simply stops responding and I have to force-quit and restart Rserve. During this time the JVM is fine and Tomcat (app server) is fine, too. The basic Java code does this: -------------------------------------------- 1. Create an R Connection 2. Execute an R Script via Rserve "eval"
2007 Dec 30
1
some questions about startup Rserve
I realize the communication between R and Java with Rserve in my dissertation, but i can not run the Rserve by double click of Rserve.exe, and also i can't realize backstage running of Rserve by technique of Multi-thread in Java. Can anyone tell me why? So, before i run the Java, i must run the R manually, then input "Rserve()" or "system("Rserve")". This
2007 Apr 07
2
Rserve and R to R communication
Dear All, The "clients.txt" file of the latest Rserve package, by Simon Urbanek, says, regarding its R client, "(...) a simple R client, i.e. it allows you to connect to Rserve from R itself. It is very simple and limited, because Rserve was not primarily meant for R-to-R communication (there are better ways to do that), but it is useful for quick interactive connection to an
2006 Jan 25
2
how to test robustness of correlation
Hi, there: As you all know, correlation is not a very robust procedure. Sometimes correlation could be driven by a few outliers. There are a few ways to improve the robustness of correlation (pearson correlation), either by outlier removal procedure, or resampling technique. I am wondering if there is any R package or R code that have incorporated outlier removal or resampling procedure in
2019 Aug 08
2
回复: [RFC] Improve iteration of estimating divisions
Hal, Yes, speed is an important factor of making dicision. Here I just put the numerator into estimation, so it won't add any more instructions. A simple benchmark below keeps the same running time between the demo and current master: ``` float fdiv(unsigned int a, unsigned int b) { return (float)a / (float)b; } float m; __attribute__((noinline)) void foo() { m = 0.0; } int main() {
2002 Aug 24
3
link my own C library using Rcmd SHLIB
Hi All, I have already used gcc to creat a library, for example, it is called "test.a", which includes many c objects. How to link my main "a.c" function to this library when I used Rcmd SHLIB to complier my main c program? I tried "Rcmd SHLIB a.c test.a". It does not work this way. Does anyone have idea about this? Thanks, Xiaoping