All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rsfF.util.Spike

java.lang.Object
   |
   +----rsfF.util.Spike

public class Spike
extends Object
This class generates a synthetic Rsf.

This should probably be an Rsf Factory. The setZero(), setConstant(), setRandom(), setSpike() methods vary the data values. We may want to have more sophisticated methods to define set of spikes. (e.g. iterator as arguments, or hyperplanes like it was possible in the old Spike). We may want to have an independent Random tool that can create various random distributions.


Constructor Index

 o Spike(Axis[])
 o Spike(InputStream)
 o Spike(int)
 o Spike(int[])
 o Spike(Rsf)

Method Index

 o getRsf()
 o main(String[])
 o setConstant(float)
 o setDatum(int[], float)
 o setRandom()
 o setZero()
 o toString()
Returns a string representation of the object.

Constructors

 o Spike
 public Spike(Rsf rsf)
 o Spike
 public Spike(InputStream istr)
 o Spike
 public Spike(Axis axes[])
 o Spike
 public Spike(int nSamples[])
 o Spike
 public Spike(int n)

Methods

 o setZero
 public void setZero()
 o setDatum
 public void setDatum(int indices[],
                      float magnitude)
 o setConstant
 public void setConstant(float magnitude)
 o setRandom
 public void setRandom()
 o getRsf
 public Rsf getRsf()
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
 o main
 public static void main(String args[]) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index