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(@NonNull double[] vector)
public VectorialValue(@NonNull Object convertibleObject)
public double[] getVector()
public void setVector(@NonNull double[] vector)
vector
- the actual vector.public void setVector(@NonNull Object convertibleObject)
convertibleObject
- an object that can be converted to a double
array or a double scalar.public static double[] mapToDoubleVector(@NonNull Object object)
object
- an object.public int hashCode()
hashCode
in class AbstractValue
public boolean equals(Object obj)
equals
in class AbstractValue
Copyright (C) 2016-2018 Benjamin Paaßen, 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 . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/