All Packages Class Hierarchy This Package Previous Next Index
Class rsf.vector.Rsf
java.lang.Object
|
+----rsf.vector.Rsf
- public abstract class Rsf
- extends Object
- implements Vector
Regularly Sampled Function
Often I want to treat all Rsf without knowing their dimensions.
I think I want an Enumeration object of the Rsf.
- See Also:
- RsfSpace
-
space
-
-
title
-
-
Rsf()
-
-
Rsf(Rsf)
- copy constructor
-
Rsf(RsfSpace)
-
-
add(Vector)
- this = this + vec2
-
add(Vector, Vector)
- this = vec1 + vec2
-
addMul(Vector, Vector)
- this = this + vec1 x vec2 (point-wise multiplication)
-
addMul(Vector, Vector, Vector)
- this = vec1 + vec2 x vec3 (point-wise multiplication)
-
addScale(float, Vector)
- this = this + a*vec2
-
addScale(float, Vector, Vector)
- this = vec1 + a*vec2
-
copy()
-
-
copyFrom(Vector)
-
-
dot(Vector)
-
-
equals(Object)
- Compares two Objects for equality.
-
fill(float)
-
-
getAxis(int)
- getAxis(0) is the slowest axis
-
getDatum(int[])
-
-
getDimension()
-
-
getNSamples()
- depreciated: use getAxis(int i).nsamples;
-
getPara()
-
-
getSpace()
-
-
getTitle()
-
The name of a data set changes as it is processed: consequently,
a programmer should be able to conveniently set it.
-
mul(Vector)
- this = this x vec2 (point-wise multiplication)
-
mul(Vector, Vector)
- this = vec1 x vec2 (point-wise multiplication)
-
neg()
- this = -this
-
neg(Vector)
- this = -vec2
-
norm()
-
-
norm2()
-
-
rand()
-
-
rand(Random)
-
-
scale(float)
- this = a*this
-
scale(float, Vector)
- this = a*vec
-
setDatum(int[], float)
-
-
setTitle(String)
-
-
size()
-
-
sub(Vector)
- this = this - vec2
-
sub(Vector, Vector)
- this = vec1 - vec2
-
toString()
- Returns a string representation of the object.
-
write(OutputStream)
-
-
write(String)
-
-
zero()
-
space
protected RsfSpace space
title
protected String title
Rsf
public Rsf()
Rsf
public Rsf(RsfSpace space)
Rsf
protected Rsf(Rsf src)
- copy constructor
copyFrom
public abstract void copyFrom(Vector src)
equals
public boolean equals(Object obj2)
- Compares two Objects for equality.
- Overrides:
- equals in class Object
getDatum
public abstract float getDatum(int i[])
- Parameters:
- int[] - i equals to internal java array storage: i[0] fastest.
get/set Datum is for encapsulated access
(alternative to direct access to x.d)
setDatum
public abstract void setDatum(int i[],
float v)
getDimension
public int getDimension()
getNSamples
public int[] getNSamples()
- depreciated: use getAxis(int i).nsamples;
size
public int size()
getAxis
public Axis getAxis(int i)
- getAxis(0) is the slowest axis
zero
public void zero()
fill
public abstract void fill(float a)
rand
public abstract void rand()
rand
public abstract void rand(Random r)
mul
public abstract void mul(Vector vec2)
- this = this x vec2 (point-wise multiplication)
mul
public abstract void mul(Vector vec1,
Vector vec2)
- this = vec1 x vec2 (point-wise multiplication)
addMul
public abstract void addMul(Vector vec1,
Vector vec2)
- this = this + vec1 x vec2 (point-wise multiplication)
addMul
public abstract void addMul(Vector vec1,
Vector vec2,
Vector vec3)
- this = vec1 + vec2 x vec3 (point-wise multiplication)
norm
public float norm()
getSpace
public Space getSpace()
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
getTitle
public String getTitle()
- The name of a data set changes as it is processed: consequently,
a programmer should be able to conveniently set it. The name is
property of the data itself, not of the space and or axes.
However, the title is not part of the Rsf method r1.equals(Rsf r2)
setTitle
public void setTitle(String title)
write
public void write(String fileName)
getPara
protected ParaKeeper getPara()
write
public abstract void write(OutputStream outstr)
All Packages Class Hierarchy This Package Previous Next Index