gov.nist.microanalysis.NISTMonte
Class ScatterStats

java.lang.Object
  extended by gov.nist.microanalysis.NISTMonte.ScatterStats
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ScatterStats
extends java.lang.Object
implements java.awt.event.ActionListener

Computes statistics for the number of steps and path length for an electron to drop below a specified energy.

Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain

Company: National Institute of Standards and Technology

Version:
1.0
Author:
Nicholas W. M. Ritchie

Constructor Summary
ScatterStats(AtomicShell shell)
          MCSS_ScatterStats - Computes the number of steps required for an electron to drop below the energy required to ionize the specified shell.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          actionPerformed - Collect the necessary statistics
 void dump(java.io.OutputStream os)
          dump - Output the resulting statistics to the OutputStream
 void dump(java.io.PrintStream ps)
          dump - Output the resulting statistics to the PrintStream
 double getAverage()
          getAverage - Returns the average number of steps required to drop below the specified energy.
 int getMaximum()
          getMaximum - Returns the maximum number of steps required to drop below the specified energy.
 int getMinimum()
          getMinimum - Returns the minimum number of steps required to drop below the specified energy.
 double getStdDeviation()
          getStdDeviation - Returns the standard deviation for the number of steps required to drop below the specified energy.
 DescriptiveStatistics getStepStatistics()
          Returns a DescriptiveStatistics object summarizing the step statistics
 DescriptiveStatistics getTrajectoryStatistics()
          Returns a DescriptiveStatistics object summarizing the trajectory length statistics
static void header(java.io.PrintStream ps)
          header - Output a header line for the results statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScatterStats

public ScatterStats(AtomicShell shell)
MCSS_ScatterStats - Computes the number of steps required for an electron to drop below the energy required to ionize the specified shell.

Parameters:
shell - AtomicShell
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed - Collect the necessary statistics

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent

getStepStatistics

public DescriptiveStatistics getStepStatistics()
Returns a DescriptiveStatistics object summarizing the step statistics

Returns:
DescriptiveStatistics

getTrajectoryStatistics

public DescriptiveStatistics getTrajectoryStatistics()
Returns a DescriptiveStatistics object summarizing the trajectory length statistics

Returns:
DescriptiveStatistics

getMaximum

public int getMaximum()
getMaximum - Returns the maximum number of steps required to drop below the specified energy.

Returns:
double

getMinimum

public int getMinimum()
getMinimum - Returns the minimum number of steps required to drop below the specified energy.

Returns:
double

getAverage

public double getAverage()
getAverage - Returns the average number of steps required to drop below the specified energy.

Returns:
double

getStdDeviation

public double getStdDeviation()
getStdDeviation - Returns the standard deviation for the number of steps required to drop below the specified energy.

Returns:
double

header

public static void header(java.io.PrintStream ps)
header - Output a header line for the results statistics.

Parameters:
ps - PrintStream

dump

public void dump(java.io.OutputStream os)
dump - Output the resulting statistics to the OutputStream

Parameters:
os - OutputStream

dump

public void dump(java.io.PrintStream ps)
dump - Output the resulting statistics to the PrintStream

Parameters:
ps - PrintStream