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 (C) 2013, 2014 Benjamin Paaßen, Charlie Krüger, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs