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

Method initCarpet

src/test/BandedSampleTest.java:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 void initCarpet() {
36 double[][] row = new double[3][numpts];
37 for(int i=0; i<numdt/2; i++) {
38 for(int j=0; j<numpts; j++) {
39 row[0][j] = Math.random();
40 row[1][j] = 0;
41 row[2][j] = 1;
42 }
43 carpet.setTopRow(row);
44 plottingPanel.render();
45 }
46 }
47
48
49 public static void main(String[] args) {

Callers 1

runMethod · 0.95

Calls 2

setTopRowMethod · 0.65
renderMethod · 0.65

Tested by

no test coverage detected