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
-
d
-
-
space
-
-
title
-
-
Rsf()
-
-
Rsf(Axis[])
-
-
Rsf(Axis[], DataAxis)
-
-
Rsf(InputStream)
-
-
Rsf(int)
-
-
Rsf(int, int)
-
-
Rsf(int[])
-
-
Rsf(Rsf)
- copy constructor
-
Rsf(RsfSpace)
-
-
Rsf(String)
-
-
add(Vector)
-
-
add(Vector, Vector)
-
-
addScale(float, Vector)
-
-
addScale(float, Vector, Vector)
-
-
allocateData()
-
-
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.
-
copyFrom(Vector)
- Point-wise multiplication plus addition (like addScale)
-
dot(Vector)
-
-
equals(Object)
- Compares two Objects for equality.
-
fill(float)
-
-
getData()
-
-
getDatum(int)
-
-
getDatum(int, int)
-
-
getDatum(int[])
- get/set Datum is for encapsulated access (alternative to direct
access to x.d)
-
getDimension()
-
-
getIndex(int, int)
-
-
getIndex(int[])
- getIndex needs to be removed (?): replaced by index function i
(or is a more explicit "getIndex" naming convention better?)
-
getIndices(int)
-
-
getNSamples()
-
-
getSpace()
-
-
getTitle()
-
-
getTotalNSamples()
-
-
i(int)
-
-
i(int, int)
-
-
i(int[])
-
-
neg()
-
-
neg(Vector)
-
-
norm()
-
-
norm2()
-
-
rand()
-
-
rand(Random)
-
-
scale(float)
-
-
scale(float, Vector)
-
-
setData(float[])
-
-
setDatum(int, float)
-
-
setDatum(int, int, float)
-
-
setDatum(int[], float)
-
-
setTitle(String)
-
-
sub(Vector)
-
-
sub(Vector, Vector)
-
-
toString()
- Returns a string representation of the object.
-
write(OutputStream)
-
-
write(String)
-
-
zero()
-
title
protected String title
d
public float d[]
space
protected RsfSpace space
Rsf
public Rsf()
Rsf
public Rsf(InputStream istr)
Rsf
public Rsf(String fileName)
Rsf
public Rsf(Axis axes[],
DataAxis dataAxis)
Rsf
public Rsf(Axis axes[])
Rsf
public Rsf(int nSamples[])
Rsf
public Rsf(int n)
Rsf
public Rsf(int rows,
int cols)
Rsf
public Rsf(RsfSpace space)
Rsf
protected Rsf(Rsf src)
- copy constructor
setTitle
public void setTitle(String title)
getTitle
public String getTitle()
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.
equals
public boolean equals(Object rsf2)
- Compares two Objects for equality.
- Overrides:
- equals in class Object
allocateData
protected void allocateData()
getData
public float[] getData()
setData
public void setData(float data[])
getDatum
public float getDatum(int i[])
- get/set Datum is for encapsulated access (alternative to direct
access to x.d)
getDatum
public float getDatum(int i)
getDatum
public float getDatum(int i,
int j)
setDatum
public void setDatum(int i[],
float v)
setDatum
public void setDatum(int i,
float v)
setDatum
public void setDatum(int i,
int j,
float v)
getDimension
public int getDimension()
getNSamples
public int[] getNSamples()
getTotalNSamples
public int getTotalNSamples()
i
public int i(int i[])
i
public int i(int i)
i
public int i(int i,
int j)
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?)
getIndex
public int getIndex(int i,
int j)
getIndices
public int[] getIndices(int i)
neg
public void neg()
neg
public void neg(Vector vec2)
addScale
public void addScale(float a,
Vector vec2)
addScale
public void addScale(float a,
Vector vec1,
Vector vec2)
add
public void add(Vector vec2)
add
public void add(Vector vec1,
Vector vec2)
sub
public void sub(Vector vec2)
sub
public void sub(Vector vec1,
Vector vec2)
scale
public void scale(float a)
scale
public void scale(float a,
Vector vec)
copyFrom
public void copyFrom(Vector src)
- Point-wise multiplication plus addition (like addScale)
zero
public void zero()
fill
public void fill(float a)
rand
public void rand()
rand
public void rand(Random r)
dot
public float dot(Vector vec2)
norm2
public float norm2()
norm
public float norm()
getSpace
public Space getSpace()
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
write
public void write(OutputStream outstr)
write
public void write(String fileName)
All Packages Class Hierarchy This Package Previous Next Index