quarks.analytics.math3.stat

Class JsonStorelessStatistic

  • java.lang.Object
    • quarks.analytics.math3.stat.JsonStorelessStatistic
    • Constructor Summary

      Constructors 
      Constructor and Description
      JsonStorelessStatistic(Statistic stat, org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic statImpl) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void clear(com.google.gson.JsonElement partition, int n)
      Clear the aggregator to prepare for a new aggregation.
      void increment(double v)
      Add a value to the aggregation.
      void result(com.google.gson.JsonElement partition, com.google.gson.JsonObject result)
      Place the result of the aggregation into the result object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonStorelessStatistic

        public JsonStorelessStatistic(Statistic stat,
                                      org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic statImpl)
    • Method Detail

      • clear

        public void clear(com.google.gson.JsonElement partition,
                          int n)
        Description copied from interface: JsonUnivariateAggregator
        Clear the aggregator to prepare for a new aggregation.
        Specified by:
        clear in interface JsonUnivariateAggregator
        Parameters:
        partition - Partition key.
        n - Number of tuples to be aggregated.
      • result

        public void result(com.google.gson.JsonElement partition,
                           com.google.gson.JsonObject result)
        Description copied from interface: JsonUnivariateAggregator
        Place the result of the aggregation into the result object. The key for the result must be JsonUnivariateAggregate.name() for the corresponding aggregate. The value of the aggregation may be a primitive value such as a double or any valid JSON element.
        Specified by:
        result in interface JsonUnivariateAggregator
        Parameters:
        partition - Partition key.
        result - JSON object holding the result.

Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902