Performance improvements in RCaller 3.0

RCaller 3.0 has many performance improvements on both single Rscript call and consequent online calls using R. For comparison issues, I generate a random vector of 100 elements in Java side, pass them to R, calculate the square of the vector and get the result back on the Java. The times consumed by these operations… Read More »

Invoking R functions from Java using RCaller 3.0 Script Engine

Here is an example of invoking a R function, here it is runif, from Java using RCaller 3.0 Script Engine. package siteexamples; import com.github.rcaller.scriptengine.NamedArgument; import com.github.rcaller.scriptengine.RCallerScriptEngine; import java.util.ArrayList; import javax.script.Invocable; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class SiteExamples {     public static void main(String[] args) {         ScriptEngineManager manager = new ScriptEngineManager();         RCallerScriptEngine engine                … Read More »

Retrieving version information of R using RCaller 3.0 Script Engine

version object in R is a list which holds the version of the running R instance. Here is an example of getting R version info from Java using RCaller 3.0 Script Engine. package siteexamples; import com.github.rcaller.scriptengine.RCallerScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class SiteExamples {     public static void main(String[] args) {         ScriptEngineManager manager =… Read More »

Calculating inverse of a square matrix using RCaller 3.0 Script Engine

Here is a simple example of calculating inverse of a square matrix using RCaller 3.0 Script Engine. package examplesforsite; import com.github.rcaller.scriptengine.RCallerScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class ExamplesForSite {     public static void main(String[] args) {         ScriptEngineManager manager = new ScriptEngineManager();         RCallerScriptEngine engine                 = (RCallerScriptEngine) manager.getEngineByName(“RCaller”);         try {             //Defining a… Read More »

Calculating determinant of a matrix using RCaller 3.0 Script Engine

Here is an example of calculating determinant of a square matrix using RCaller 3.0 Script Engine.   package examplesforsite; import com.github.rcaller.scriptengine.RCallerScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class ExamplesForSite {     public static void main(String[] args) {         ScriptEngineManager manager = new ScriptEngineManager();         RCallerScriptEngine engine = (RCallerScriptEngine) manager.getEngineByName(“RCaller”);         try {             //Defining a matrix… Read More »

Calculating simple statistics using RCaller 3.0 Script Engine

Here is an example of calculating some simple statistics using RCaller 3.0 Script Engine.   package examplesforsite; import com.github.rcaller.scriptengine.RCallerScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class ExamplesForSite {     public static void main(String[] args) {         ScriptEngineManager manager = new ScriptEngineManager();         RCallerScriptEngine engine = (RCallerScriptEngine) manager.getEngineByName(“RCaller”);         try {             //Creating some data in Java… Read More »

Simple Linear Regression with RCaller 3.0 Script Engine

Here is a simple example for performing a simple linear regression with RCaller 3.0 Script Engine. package examplesforsite; import com.github.rcaller.scriptengine.RCallerScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class ExamplesForSite { public static void main(String[] args) { ScriptEngineManager manager = new ScriptEngineManager(); RCallerScriptEngine engine = (RCallerScriptEngine) manager.getEngineByName(“RCaller”); try { engine.eval(“x <- 1:10”); engine.eval(“y <- rnorm(10)”); engine.eval(“ols <- lm(y~x)”);… Read More »

User Manual for RCaller 3.0

We prepare a user manual for RCaller 3.0. You can download it using the link: https://github.com/jbytecode/rcaller/blob/master/doc/rcaller3/rcaller3.pdf Enjoy.

[in Turkish] 7 Haziran 2016 tarihli Vezneciler Terör Eylemi Üzerine

Eşinle üniversiteye gidiyorsun (Tekin ailesi). Yer Beyazıt, değil yalnızca Türkiye’nin göbeğinin deliği, Osmanlı’nın da başkenti. Topkapı sarayının hemen arkası. Kapalıçarşının hemen yanı. 1453’te kurulmuş üniversitenin neredeyse bahçesi. İşçiler, memurlar, öğrenciler, öğretim üyeleri, esnaf, turist, herkes orada. Bomba patlarsa en az birimiz ölür orda, adı önemli değil. Terör içselleşmiş, kanıksanmış, birilerinin öldüğünden ziyade acaba kimler öldü… Read More »

[in Turkish] Genetik Algoritmalar (Kitap)

Genetik Algoritmalar başlıklı kitabım Türkmen Kitabevinde satışa sunulmuştur. Kitaba aşağıdaki linkten ulaşılabilir: http://www.turkmenkitabevi.com.tr/genetik-algoritmalar-mehmet-hakan-satman-k251291.html Kitabın önsözü aşağıdaki gibidir: İnsan ve yeryüzünde yaşayan diğer canlılar arasındaki en büyük fark muhtemelen doğayla kurdukları ilişkinin şeklidir. Bir balık suda yüzerken neredeyse su kadar doğal görünürken; kafası karışık insan, neyi nasıl yapacağını düşünme karmaşasında kendini medeniyetler kurarken buluverir. Balık kendiliğinden… Read More »