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 .NET programs


One of the distinctive features of using .NET in Mathematica is that in order to use all the capabilities of .NET, we don't need to write code at all. You can write a program right within the Mathematica environment. In this section, you will learn how to download .NET assemblies and types directly to Mathematica, as well as how to create objects from these types, call methods, properties, and so on.

In order to enable Mathematica's functions to interact with .NET, you need to download the NETLink package:

Needs["NETLink`"]

To run the .NET environment, it's necessary to run InstallNET[]. In case of an active development and a change of .NET classes to restart the environment, it's convenient to run ReinstallNET[].

Using LoadNETAssembly, we will load a .NET assembly into the Mathematica environment:

LoadNETAssembly["System.Web"]

The .NET types are loaded with the help of the LoadNETType function:

LoadNETType["System.Windows.Forms.Form"]

To demonstrate the principles...