de.unidu.is.gnuplot
Class DiscreteDistributionSource

java.lang.Object
  extended byde.unidu.is.gnuplot.Source
      extended byde.unidu.is.gnuplot.FileSource
          extended byde.unidu.is.gnuplot.DataSource
              extended byde.unidu.is.gnuplot.ArrayDataSource
                  extended byde.unidu.is.gnuplot.DiscreteDistributionSource

public class DiscreteDistributionSource
extends ArrayDataSource

A class for modelling a discrete distribution as source for Gnuplot.

Since:
2003-07-27
Version:
$Revision: 1.6 $, $Date: 2005/03/14 17:33:15 $
Author:
Henrik Nottelmann

Field Summary
 
Fields inherited from class de.unidu.is.gnuplot.ArrayDataSource
count, x, y
 
Fields inherited from class de.unidu.is.gnuplot.FileSource
filename, nosmooth
 
Fields inherited from class de.unidu.is.gnuplot.Source
max, min, title
 
Constructor Summary
DiscreteDistributionSource(java.lang.String title, java.io.File file, DiscreteDistribution distribution)
          Creates a new instance.
DiscreteDistributionSource(java.lang.String title, java.lang.String filename, DiscreteDistribution distribution)
          Constructs a new instance.
 
Methods inherited from class de.unidu.is.gnuplot.ArrayDataSource
getX, getY, next
 
Methods inherited from class de.unidu.is.gnuplot.DataSource
getCommand, write, write
 
Methods inherited from class de.unidu.is.gnuplot.FileSource
getFilename, isSmooth, setFilename, setSmooth
 
Methods inherited from class de.unidu.is.gnuplot.Source
getMax, getMin, getTitle, setMax, setMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteDistributionSource

public DiscreteDistributionSource(java.lang.String title,
                                  java.io.File file,
                                  DiscreteDistribution distribution)
Creates a new instance.

Parameters:
title - title of this curve, or null
file - data output file
distribution - discrete distribution to be used

DiscreteDistributionSource

public DiscreteDistributionSource(java.lang.String title,
                                  java.lang.String filename,
                                  DiscreteDistribution distribution)
Constructs a new instance.

Parameters:
title - title of this curve, or null
filename - name of the data output file
distribution - discrete distribution to be used