Artificial Neural Network in Kotlin - FANN

Submitted by Dickens A S on Thu, 11/28/2019 - 13:53

FANN is an open source library

which offers C based API which can be invoked from Kotlin

Below Kotlin example shows how it can be invoked

import fann.*

fun main() 

    var ann = fann_create_standard(4, 2, 8, 9, 1)

Below is the sample output from MSYS2 terminal

Call octave Mex from Kotlin

Submitted by Dickens A S on Thu, 11/28/2019 - 09:06

GNU Octave 

is one of the popular Scientific Programming Language or platform

It can be download and installed for free

This Article explains how to trigger Mex script from Kotlin using "mex.h" and "octave.h" C API in Kotlin

Octave is installed in C:\octave with below structure and files

Installing R using Cygwin

Submitted by Dickens A S on Wed, 11/27/2019 - 14:37

R is amazing platform which many numerical methods and analysis options available

This article explains how to use R in Windows using Cygwin

Reason for Cygwin, it has X11 and Cygwin-X with amazing setup selection tools and many libraries

Below are the installation steps

Step 1: Download and install Cygwin and dependencies

64 Bit Windows:
32 Bit Windows:

Call Python from Kotlin or embed Python code inside Kotlin

Submitted by Dickens A S on Fri, 11/22/2019 - 11:47

Embedded Python inside Kotlin


Compile and Execute from MSYS2 or Cygwin with python development C header files

Demo output

Embed Python

Python code which is running inside Kotlin