Class DegreeDistributionSketch

java.lang.Object
org.impulsegraph.storage.stats.DegreeDistributionSketch

public class DegreeDistributionSketch extends Object
Uses Reservoir Sampling to estimate percentiles (p50, p90, p99) of degree distributions.
  • Constructor Details

    • DegreeDistributionSketch

      public DegreeDistributionSketch(int sampleSize)
  • Method Details

    • offer

      public void offer(int degree)
    • getCount

      public int getCount()
    • getSum

      public long getSum()
    • getMean

      public double getMean()
    • getVariance

      public double getVariance()
    • getStandardDeviation

      public double getStandardDeviation()
    • getMax

      public long getMax()
    • getMin

      public long getMin()
    • getZeroCount

      public long getZeroCount()
    • getPercentile

      public int getPercentile(double p)