ca.pfv.spmf.patterns.cluster
Class DoubleArray
- java.lang.Object
-
- ca.pfv.spmf.patterns.cluster.DoubleArray
-
public class DoubleArray extends java.lang.ObjectThis class represents a vector of double values, used mainly by clustering algorithms such as KMeans.
-
-
Field Summary
Fields Modifier and Type Field and Description double[]data
-
Constructor Summary
Constructors Constructor and Description DoubleArray(double[] data)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DoubleArrayclone()Return a copy of this double arrayjava.lang.StringtoString()Get a string representation of this double array.
-
-
-
Constructor Detail
-
DoubleArray
public DoubleArray(double[] data)
Constructor- Parameters:
data- an array of double values
-
-
Method Detail
-
toString
public java.lang.String toString()
Get a string representation of this double array.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string
-
clone
public DoubleArray clone()
Return a copy of this double array- Overrides:
clonein classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG