
Public Member Functions | |
| PVector (int dim) | |
| Class constructor. | |
| PVector | Plus (Parameter v2) |
Adds (not in place) the current vector to the vector . | |
| PVector | Minus (Parameter v2) |
Subtracts (not in place) the vector to the current vector . | |
| PVector | Times (double lambda) |
Multiplies (not in place) the current vector by a real number . | |
| double | InnerProduct (Parameter v2) |
Computes the inner product (real number) between the current vector and the vector . | |
| PMatrix | OuterProduct () |
Computes the outer product (matrix) between the current vector with himself. | |
| double | norm2 () |
Computes the Euclidean norm of the current vector . | |
| String | toString () |
| Method toString. | |
| Parameter | clone () |
| Creates and returns a copy of the instance. | |
| int | getDimension () |
| Returns vector's dimension. | |
Static Public Member Functions | |
| static PVector | Random (int dim) |
Generates of a random vector where each component is drawn uniformly in . | |
| static PVector | RandomDistribution (int dim) |
Generates of a random vector where each component is drawn uniformly in . | |
| static boolean | equals (PVector v1, PVector v2) |
| Verifies if two vectors are similar. | |
Public Attributes | |
| int | dim |
| Dimension of the vector. | |
| double[] | array |
| Array containing the values of the vector. | |
| jMEF.PVector.PVector | ( | int | dim | ) |
Class constructor.
| dim | dimension of the vector |
| Parameter jMEF.PVector.clone | ( | ) | [virtual] |
Creates and returns a copy of the instance.
Implements jMEF.Parameter.
Verifies if two vectors are similar.
| v1 | vector | |
| v2 | vector |
, false otherwise | int jMEF.PVector.getDimension | ( | ) | [virtual] |
| double jMEF.PVector.InnerProduct | ( | Parameter | v2 | ) | [virtual] |
Computes the inner product (real number) between the current vector
and the vector
.
| v2 | vector |
Implements jMEF.Parameter.
Subtracts (not in place) the vector
to the current vector
.
| v2 | vector |
Implements jMEF.Parameter.
| double jMEF.PVector.norm2 | ( | ) |
Computes the Euclidean norm of the current vector
.
| PMatrix jMEF.PVector.OuterProduct | ( | ) |
Computes the outer product (matrix) between the current vector
with himself.
Adds (not in place) the current vector
to the vector
.
| v2 | vector |
Implements jMEF.Parameter.
| static PVector jMEF.PVector.Random | ( | int | dim | ) | [static] |
Generates of a random vector
where each component is drawn uniformly in
.
| dim | dimension of the vector |
| static PVector jMEF.PVector.RandomDistribution | ( | int | dim | ) | [static] |
Generates of a random vector
where each component is drawn uniformly in
.
The vector is normalized such as
.
| dim | dimension of the vector |
| PVector jMEF.PVector.Times | ( | double | lambda | ) | [virtual] |
Multiplies (not in place) the current vector
by a real number
.
| lambda | value |
Implements jMEF.Parameter.
| String jMEF.PVector.toString | ( | ) |
Method toString.
| double [] jMEF.PVector.array |
Array containing the values of the vector.
| int jMEF.PVector.dim |
Dimension of the vector.
1.5.9