public class VectorialValue extends AbstractValue
Constructor and Description |
---|
VectorialValue() |
VectorialValue(double[] vector) |
VectorialValue(Object convertibleObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double[] |
getVector()
Returns the actual vector.
|
int |
hashCode() |
static double[] |
mapToDoubleVector(Object object)
Tries to convert an object to a double vector.
|
void |
setVector(double[] vector)
Sets the actual vector.
|
void |
setVector(Object convertibleObject)
Sets the actual vector.
|
String |
toString() |
getType
public VectorialValue()
public VectorialValue(double[] vector)
public VectorialValue(Object convertibleObject)
public double[] getVector()
public void setVector(double[] vector)
vector
- the actual vector.public void setVector(Object convertibleObject)
convertibleObject
- an object that can be converted to a double
array or a double scalar.public static double[] mapToDoubleVector(Object object)
object
- an object.public int hashCode()
hashCode
in class AbstractValue
public boolean equals(Object obj)
equals
in class AbstractValue
Copyright © 2014. All rights reserved.