public class OVector
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
values |
| Constructor and Description |
|---|
OVector(double value)
Creates a one-dimensional instance of this class.
|
OVector(double[] values)
Constructs a new observation for a given feature-vector.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension() |
boolean |
equals(java.lang.Object obj) |
double[] |
getValues()
Returns the values of this observation.
|
int |
hashCode() |
java.lang.String |
toString() |
public OVector(double[] values)
values - vector valuespublic OVector(double value)
value - vector valuepublic double[] getValues()
public int dimension()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object