### Question:
ApproxSimilaritySummaryResult { private double computeScanRate(final long nodes, final long computations) { long maximumComputations = (nodes * (nodes - 1)) / 2; return computations * 1.0 / maximumComputations; } ApproxSimilaritySummaryResult(
            long nodes,
            long similarityPairs,
            long computations,
            String writeRelationshipType,
            String writeProperty,
            double min,
            double max,
            double mean,
            double stdDev,
            double p25,
            double p50,
            double p75,
            double p90,
            double p95,
            double p99,
            double p999,
            double p100,
            long iterations); static ApproxSimilaritySummaryResult from(
            long nodes,
            long similarityPairs,
            long computations,
            String writeRelationshipType,
            String writeProperty,
            long iterations,
            DoubleHistogram histogram); final long nodes; final long similarityPairs; final long computations; final String writeRelationshipType; final String writeProperty; final double min; final double max; final double mean; final double stdDev; final double p25; final double p50; final double p75; final double p90; final double p95; final double p99; final double p999; final double p100; final long iterations; final double scanRate; }### Answer:
@Test void computeScanRate() { ApproxSimilaritySummaryResult result = new ApproxSimilaritySummaryResult( 100, 0, 495, "", "", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1); assertEquals(0.1, result.scanRate, 0.0001); }