Book Image

Mathematica Data Analysis

By : Sergiy Suchok
Book Image

Mathematica Data Analysis

By: Sergiy Suchok

Overview of this book

There are many algorithms for data analysis and it’s not always possible to quickly choose the best one for each case. Implementation of the algorithms takes a lot of time. With the help of Mathematica, you can quickly get a result from the use of a particular method, because this system contains almost all the known algorithms for data analysis. If you are not a programmer but you need to analyze data, this book will show you the capabilities of Mathematica when just few strings of intelligible code help to solve huge tasks from statistical issues to pattern recognition. If you're a programmer, with the help of this book, you will learn how to use the library of algorithms implemented in Mathematica in your programs, as well as how to write algorithm testing procedure. With each chapter, you'll be more immersed in the special world of Mathematica. Along with intuitive queries for data processing, we will highlight the nuances and features of this system, allowing you to build effective analysis systems. With the help of this book, you will learn how to optimize the computations by combining your libraries with the Mathematica kernel.
Table of Contents (15 chapters)
Mathematica Data Analysis
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Interacting with Java


Having mastered the principles of Mathematica's interaction with external programs, it will be easy to understand the principles of writing Java programs in Mathematica.

First, you need to enable the JLink package. Here's an example Java program that will produce an expression computation using Mathematica's capabilities:

Similar to .NET, the following functions are used: JavaBlock for procedure construction in Java language and JavaNew to define a new object copy. The Moving slider event is declared with the help of the setHandler method.

After running the RealTimeAlgebraModal[] command, you will see the following window where you can change the parameter value and a power series in the expansion by moving the slider:

Let's look at a simple example of how to use the computing capabilities of Mathematica in a program written in Java:

import com.wolfram.jlink.*;

public class SampleProgram {

  public static void main(String[] argv) {

    KernelLink ml = null;

    try ...