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 https://www.gnu.org/software/octave/ 

is one of the popular Scientific Programming Language or platform

It can be download https://www.gnu.org/software/octave/download.html 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

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

GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-python

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

Demo output

Embed Python

Python code which is running inside Kotlin