MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

LabEnv/01Lab/PercolationStats.java:58–67  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

56 }
57
58 public static void main(String[] args) {
59 int n = Integer.parseInt(args[0]);
60 int trials = Integer.parseInt(args[1]);
61
62 PercolationStats ps = new PercolationStats(n, trials);
63 StdOut.println("mean = " + ps.mean());
64 StdOut.println("stddev = " + ps.stddev());
65 StdOut.println(
66 "95% confidence interval = [" + ps.confidenceLo() + ", " + ps.confidenceHi() + "]");
67 }
68}

Callers

nothing calls this directly

Calls 4

meanMethod · 0.95
stddevMethod · 0.95
confidenceLoMethod · 0.95
confidenceHiMethod · 0.95

Tested by

no test coverage detected