|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ru.sscc.util.data.RealVector | +--ru.sscc.util.data.DoubleVector
The implementation of RealVector
vector based on double[]
type container.
Fields inherited from class ru.sscc.util.data.RealVector |
index,
length,
step |
Constructor Summary | |
DoubleVector(double[] data)
Simple constructor (creates a vector based on all data entries). |
|
DoubleVector(double[] data,
int length,
int index,
int step)
General constructor. |
|
DoubleVector(int size)
Simple constructor (creates a vector of the required size). |
Method Summary | |
double |
add(int index,
double value)
Adds the value to the vector entry. |
double |
get(int index)
Gets the value of a vector entry. |
RealPointer |
getPointer()
Gets a pointer to the beginning of the real data vector with the unit increment. |
double |
mul(int index,
double value)
Multiplies the vector entry by the value. |
double |
set(int index,
double value)
Sets the value of a vector entry. |
RealVector |
subvector(int index,
int step,
int length)
Creates a subvector within the real data vector. |
Methods inherited from class ru.sscc.util.data.RealVector |
addVector,
addVector,
assign,
assign,
assign,
assign,
assign,
assign,
by,
by,
ensureLength,
getPointer,
inc,
indexOfNormMax,
indexOfNormMax,
innerProduct,
innerProduct,
multiply,
multiply,
norm,
norm,
normMax,
normMax,
normSum,
normSum,
pos,
swap,
weightedNorm,
weightedNorm,
weightedNormMax,
weightedNormMax,
weightedNormSum,
weightedNormSum,
weightedProduct,
weightedProduct |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DoubleVector(int size)
size
- a vector sizepublic DoubleVector(double[] data)
data
- a data containerpublic DoubleVector(double[] data, int length, int index, int step)
data
- a data containerlength
- a vector lengthindex
- a starting index in the containerstep
- an increment stepMethod Detail |
public double get(int index)
index
- an entry position in the vectorpublic double set(int index, double value)
index
- an entry position in the vectorvalue
- a value to setpublic double add(int index, double value)
index
- the entry position in the containervalue
- the value to addpublic double mul(int index, double value)
index
- the entry position in the containervalue
- the value to multiplypublic RealPointer getPointer()
public RealVector subvector(int index, int step, int length)
index
- a starting indexstep
- an increment steplength
- a length of the subvector
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |