Creates a deep clone of this data point, such that altering either data point does not effect the other one. @return a deep clone of this data point.
()
| 205 | * @return a deep clone of this data point. |
| 206 | */ |
| 207 | public DataPoint clone() |
| 208 | { |
| 209 | return new DataPoint(numericalValues.clone(), |
| 210 | Arrays.copyOf(categoricalValues, categoricalValues.length), |
| 211 | CategoricalData.copyOf(categoricalData), |
| 212 | weight); |
| 213 | } |
| 214 | } |