All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.sketches.sampling.SampleSubsetSummary Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package com.yahoo.sketches.sampling;

/**
 * A simple object o capture the results of a subset sum query on a sampling sketch.
 *
 * @author Jon Malkin
 */
public class SampleSubsetSummary {
  private double lowerBound;
  private double estimate;
  private double upperBound;
  private double totalSketchWeight;

  SampleSubsetSummary(final double lowerBound,
                      final double estimate,
                      final double upperBound,
                      final double totalSketchWeight) {
    this.lowerBound        = lowerBound;
    this.estimate          = estimate;
    this.upperBound        = upperBound;
    this.totalSketchWeight = totalSketchWeight;
  }

  public double getLowerBound() {
    return lowerBound;
  }

  public double getTotalSketchWeight() {
    return totalSketchWeight;
  }

  public double getUpperBound() {
    return upperBound;
  }

  public double getEstimate() {
    return estimate;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy