public class Vector
extends java.lang.Object
implements java.io.Serializable
double[]
and its class label as primitive double.Constructor and Description |
---|
Vector(double[] values,
double classLabel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
double |
getClassLabel() |
int |
getDimension() |
double |
getValue(int index) |
double[] |
getValues() |
int |
hashCode() |
void |
setClassLabel(double classLabel) |
void |
setValues(double[] values) |
void |
setValues(Vector vector) |
java.lang.String |
toString() |
public int getDimension()
public double[] getValues()
public void setValues(Vector vector)
public double getValue(int index)
public void setValues(double[] values)
public double getClassLabel()
public void setClassLabel(double classLabel)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object