test_class.declarator: df
test_class.modifier: private
test_class.original_string: private DataFrame df;
test_class.type: DataFrame
test_class.var_name: df
test_class.file: lib/src/test/java/edu/stanford/futuredata/macrobase/analysis/summary/aplinear/APLCountMeanShiftSummarizerTest.java
test_class.identifier: APLCountMeanShiftSummarizerTest
test_case.body: @Test
      public void testSummarize() throws Exception {
          assertEquals(9, df.getNumRows());
          CountMeanShiftCubedClassifier pc = new CountMeanShiftCubedClassifier("count", "time", "meanLatency", "==", "1");
          pc.process(df);
          DataFrame output = pc.getResults();
          assertEquals(df.getNumRows(), output.getNumRows());
  
          List<String> explanationAttributes = Arrays.asList(
                  "location",
                  "version",
                  "language"
          );
  
          APLCountMeanShiftSummarizer summ = new APLCountMeanShiftSummarizer();
          summ.setMinSupport(.05);
          summ.setMinMeanShift(1.1);
          summ.setAttributes(explanationAttributes);
          summ.process(output);
          APLExplanation e = summ.getResults();
          TestCase.assertEquals(3, e.getResults().size());
          assertTrue(e.prettyPrint().contains("location=AUS"));
          assertTrue(e.prettyPrint().contains("version=v2"));
          assertTrue(e.prettyPrint().contains("language=ENG"));
      }
test_case.class_method_signature: APLCountMeanShiftSummarizerTest.testSummarize()
test_case.full_signature: @Test public void testSummarize()
test_case.identifier: testSummarize
test_case.invocations: assertEquals getNumRows process getResults assertEquals getNumRows getNumRows asList setMinSupport setMinMeanShift setAttributes process getResults assertEquals size getResults assertTrue contains prettyPrint assertTrue contains prettyPrint assertTrue contains prettyPrint
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSummarize()
focal_class.declarator: log = LoggerFactory.getLogger("APLMeanSummarizer")
focal_class.modifier: private
focal_class.original_string: private Logger log = LoggerFactory.getLogger("APLMeanSummarizer");
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: minMeanShift = 1.0
focal_class.modifier: private
focal_class.original_string: private double minMeanShift = 1.0;
focal_class.type: double
focal_class.var_name: minMeanShift
focal_class.file: lib/src/main/java/edu/stanford/futuredata/macrobase/analysis/summary/aplinear/APLCountMeanShiftSummarizer.java
focal_class.identifier: APLCountMeanShiftSummarizer
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getAggregateNames()
focal_class.full_signature: @Override public List<String> getAggregateNames()
focal_class.identifier: getAggregateNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAggregateNames()
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getAggregationOps()
focal_class.full_signature: @Override public AggregationOp[] getAggregationOps()
focal_class.identifier: getAggregationOps
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AggregationOp[]
focal_class.signature: AggregationOp[] getAggregationOps()
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getEncoded(List<String[]> columns, DataFrame input)
focal_class.full_signature: @Override public int[][] getEncoded(List<String[]> columns, DataFrame input)
focal_class.identifier: getEncoded
focal_class.modifiers: @Override public
focal_class.parameters: (List<String[]> columns, DataFrame input)
focal_class.return: int[][]
focal_class.signature: int[][] getEncoded(List<String[]> columns, DataFrame input)
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getAggregateColumns(DataFrame input)
focal_class.full_signature: @Override public double[][] getAggregateColumns(DataFrame input)
focal_class.identifier: getAggregateColumns
focal_class.modifiers: @Override public
focal_class.parameters: (DataFrame input)
focal_class.return: double[][]
focal_class.signature: double[][] getAggregateColumns(DataFrame input)
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getQualityMetricList()
focal_class.full_signature: @Override public List<QualityMetric> getQualityMetricList()
focal_class.identifier: getQualityMetricList
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<QualityMetric>
focal_class.signature: List<QualityMetric> getQualityMetricList()
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getThresholds()
focal_class.full_signature: @Override public List<Double> getThresholds()
focal_class.identifier: getThresholds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Double>
focal_class.signature: List<Double> getThresholds()
focal_class.class_method_signature: APLCountMeanShiftSummarizer.getNumberOutliers(double[][] aggregates)
focal_class.full_signature: @Override public double getNumberOutliers(double[][] aggregates)
focal_class.identifier: getNumberOutliers
focal_class.modifiers: @Override public
focal_class.parameters: (double[][] aggregates)
focal_class.return: double
focal_class.signature: double getNumberOutliers(double[][] aggregates)
focal_class.class_method_signature: APLCountMeanShiftSummarizer.setMinMeanShift(double minMeanShift)
focal_class.full_signature: public void setMinMeanShift(double minMeanShift)
focal_class.identifier: setMinMeanShift
focal_class.modifiers: public
focal_class.parameters: (double minMeanShift)
focal_class.return: void
focal_class.signature: void setMinMeanShift(double minMeanShift)
focal_class.superclass: extends APLSummarizer
focal_method.body: public void setMinMeanShift(double minMeanShift) {
          this.minMeanShift = minMeanShift;
      }
focal_method.class_method_signature: APLCountMeanShiftSummarizer.setMinMeanShift(double minMeanShift)
focal_method.full_signature: public void setMinMeanShift(double minMeanShift)
focal_method.identifier: setMinMeanShift
focal_method.modifiers: public
focal_method.parameters: (double minMeanShift)
focal_method.return: void
focal_method.signature: void setMinMeanShift(double minMeanShift)