MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / setPoints

Method setPoints

src/org/opensourcephysics/tools/DataColumn.java:43–47  ·  view source on GitHub ↗

Sets the y-column points. The x-column points are always row numbers. @param yPoints the y-column data points

(double[] yPoints, int len)

Source from the content-addressed store, hash-verified

41 * @param yPoints the y-column data points
42 */
43 public void setPoints(double[] yPoints, int len) {
44 clear();
45 double[] rows = DataTool.getRowArray(len);
46 append(rows, yPoints);
47 }
48
49 /**
50 * Overrides Dataset.setXYColumnNames method. The x-column name is always "row".

Callers 3

createDataColumnMethod · 0.95
createDataColumnsMethod · 0.95
createDataColumnMethod · 0.95

Calls 3

getRowArrayMethod · 0.95
clearMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected