All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rsfF.vector.Rsf

java.lang.Object
   |
   +----rsfF.vector.Rsf

public class Rsf
extends Object
implements Vector
Regularly Sampled Function

See Also:
RsfSpace

Variable Index

 o d
 o space
 o title

Constructor Index

 o Rsf()
 o Rsf(Axis[])
 o Rsf(Axis[], DataAxis)
 o Rsf(InputStream)
 o Rsf(int)
 o Rsf(int, int)
 o Rsf(int[])
 o Rsf(Rsf)
copy constructor
 o Rsf(RsfSpace)
 o Rsf(String)

Method Index

 o add(Vector)
 o add(Vector, Vector)
 o addScale(float, Vector)
 o addScale(float, Vector, Vector)
 o allocateData()
 o copy()
WARNING: the space copied is a shallow copy, meaning that if you subsequently change any of the internals of the space of one vector, then the space of the other vector is affected.
 o copyFrom(Vector)
Point-wise multiplication plus addition (like addScale)
 o dot(Vector)
 o equals(Object)
Compares two Objects for equality.
 o fill(float)
 o getData()
 o getDatum(int)
 o getDatum(int, int)
 o getDatum(int[])
get/set Datum is for encapsulated access (alternative to direct access to x.d)
 o getDimension()
 o getIndex(int, int)
 o getIndex(int[])
getIndex needs to be removed (?): replaced by index function i (or is a more explicit "getIndex" naming convention better?)
 o getIndices(int)
 o getNSamples()
 o getSpace()
 o getTitle()
 o getTotalNSamples()
 o i(int)
 o i(int, int)
 o i(int[])
 o neg()
 o neg(Vector)
 o norm()
 o norm2()
 o rand()
 o rand(Random)
 o scale(float)
 o scale(float, Vector)
 o setData(float[])
 o setDatum(int, float)
 o setDatum(int, int, float)
 o setDatum(int[], float)
 o setTitle(String)
 o sub(Vector)
 o sub(Vector, Vector)
 o toString()
Returns a string representation of the object.
 o write(OutputStream)
 o write(String)
 o zero()

Variables

 o title
 protected String title
 o d
 public float d[]
 o space
 protected RsfSpace space

Constructors

 o Rsf
 public Rsf()
 o Rsf
 public Rsf(InputStream istr)
 o Rsf
 public Rsf(String fileName)
 o Rsf
 public Rsf(Axis axes[],
            DataAxis dataAxis)
 o Rsf
 public Rsf(Axis axes[])
 o Rsf
 public Rsf(int nSamples[])
 o Rsf
 public Rsf(int n)
 o Rsf
 public Rsf(int rows,
            int cols)
 o Rsf
 public Rsf(RsfSpace space)
 o Rsf
 protected Rsf(Rsf src)
copy constructor

Methods

 o setTitle
 public void setTitle(String title)
 o getTitle
 public String getTitle()
 o copy
 public JamObject copy()
WARNING: the space copied is a shallow copy, meaning that if you subsequently change any of the internals of the space of one vector, then the space of the other vector is affected.

 o equals
 public boolean equals(Object rsf2)
Compares two Objects for equality.

Overrides:
equals in class Object
 o allocateData
 protected void allocateData()
 o getData
 public float[] getData()
 o setData
 public void setData(float data[])
 o getDatum
 public float getDatum(int i[])
get/set Datum is for encapsulated access (alternative to direct access to x.d)

 o getDatum
 public float getDatum(int i)
 o getDatum
 public float getDatum(int i,
                       int j)
 o setDatum
 public void setDatum(int i[],
                      float v)
 o setDatum
 public void setDatum(int i,
                      float v)
 o setDatum
 public void setDatum(int i,
                      int j,
                      float v)
 o getDimension
 public int getDimension()
 o getNSamples
 public int[] getNSamples()
 o getTotalNSamples
 public int getTotalNSamples()
 o i
 public int i(int i[])
 o i
 public int i(int i)
 o i
 public int i(int i,
              int j)
 o getIndex
 public int getIndex(int i[])
getIndex needs to be removed (?): replaced by index function i (or is a more explicit "getIndex" naming convention better?)

 o getIndex
 public int getIndex(int i,
                     int j)
 o getIndices
 public int[] getIndices(int i)
 o neg
 public void neg()
 o neg
 public void neg(Vector vec2)
 o addScale
 public void addScale(float a,
                      Vector vec2)
 o addScale
 public void addScale(float a,
                      Vector vec1,
                      Vector vec2)
 o add
 public void add(Vector vec2)
 o add
 public void add(Vector vec1,
                 Vector vec2)
 o sub
 public void sub(Vector vec2)
 o sub
 public void sub(Vector vec1,
                 Vector vec2)
 o scale
 public void scale(float a)
 o scale
 public void scale(float a,
                   Vector vec)
 o copyFrom
 public void copyFrom(Vector src)
Point-wise multiplication plus addition (like addScale)

 o zero
 public void zero()
 o fill
 public void fill(float a)
 o rand
 public void rand()
 o rand
 public void rand(Random r)
 o dot
 public float dot(Vector vec2)
 o norm2
 public float norm2()
 o norm
 public float norm()
 o getSpace
 public Space getSpace()
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
 o write
 public void write(OutputStream outstr)
 o write
 public void write(String fileName)

All Packages  Class Hierarchy  This Package  Previous  Next  Index