Scripting NISTMonte with Jython (2006)

The Jython scripting language is an effective way to use the NISTMonte library to perform Monte Carlo simulations. Jython is a Java* implementation of the Python scripting language. The syntax of Jython is similar to the syntax of Python but, unlike Python, Jython has complete access to libraries compiled as Java byte-code. Jython is freely available at http://www.jython.org. A simple GUI based scripting environment (JythonGUI) is included with the NISTMonte package. Jython isn’t the only way to make use of NISTMonte. NISTMonte can be called from within a Java application, library or applet like any Java library however writing and compiling a new Java application for each new simulation quickly becomes tedious. Jython provides a more responsive environment in which scripts can be readily written, modified and executed. This document is an introduction to Jython with a focus on scripting NISTMonte. It takes a pragmatic approach. Rather than attempt to teach the language and then teach how to apply the language to NISTMonte, this document dives right in. It doesn’t spend much time discussing the syntax of Jython – this information is available in the resources listed below. Instead, it demonstrates through examples how Jython can access NISTMonte and how you can configure NISTMonte to perform sophisticated Monte Carlo simulations. [via]
http://www.cstl.nist.gov/div837/837.02/epq/Jy...

Rating: 0/10

 

 

 

 

 

Related Files

 

Rate this Document

ADS

 

Tag Clouds

 

BookShelf