Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package percolation;
- import edu.princeton.cs.algs4.StdIn;
- import edu.princeton.cs.algs4.StdOut;
- import edu.princeton.cs.algs4.Stopwatch;
- public class PercolationTester {
- public static void main(String[] args) {
- int N = StdIn.readInt();
- int T = StdIn.readInt();
- Stopwatch stopwatch = new Stopwatch();
- PercolationStats ps = new PercolationStats(N, T);
- StdOut.println("Running time: " + stopwatch.elapsedTime() + " seconds.");
- StdOut.println("mean() = " + ps.mean());
- StdOut.println("stddev() = " + ps.stddev());
- StdOut.println("confidenceLow() = " + ps.confidenceLow());
- StdOut.println("confidenceHigh() = " + ps.confidenceHigh());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement