MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / clone

Method clone

JSAT/src/jsat/classifiers/DataPoint.java:207–213  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

copyOfMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected