public interface Vector<T extends Number>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if the object is a Vector of the same length
and whose corresponding indices have equivalent values. |
Number |
getValue(int index)
Return the value of the vector at the given index as a
Number . |
int |
hashCode()
Returns the hash code as the sum of the vectors elements, normalized to
an
int . |
int |
length()
Return the size of the
Vector . |
double |
magnitude()
Returns the magnitude of this vector
|
void |
set(int index,
Number value)
Set the value in the vector (optional operation).
|
boolean equals(Object o)
true
if the object is a Vector
of the same length
and whose corresponding indices have equivalent values.Number getValue(int index)
Number
.index
- index to retrieve.int hashCode()
int
.int length()
Vector
.double magnitude()
void set(int index, Number value)
index
- index to set.value
- value to set in the vector.Copyright © 2012. All Rights Reserved.