Turi Create
4.0
|
#include <core/storage/sframe_data/groupby_aggregate_operators.hpp>
Public Member Functions | |
virtual group_aggregate_value * | new_instance () const |
Returns a new empty instance of count. | |
void | add_element_simple (const flexible_type &flex) |
Adds a new element to be counted. | |
void | combine (const group_aggregate_value &other) |
combines two partial counts | |
virtual flexible_type | emit () const |
Emits the count result. | |
bool | support_type (flex_type_enum type) const |
The types supported by the count. | |
flex_type_enum | set_input_type (flex_type_enum type) |
The input type. | |
virtual std::string | name () const |
Name of the class. | |
void | save (oarchive &oarc) const |
Serializer. | |
void | load (iarchive &iarc) |
Deserializer. | |
virtual void | print (std::ostream &os) const |
virtual void | add_element (const std::vector< flexible_type > &values) |
virtual void | partial_finalize () |
virtual flex_type_enum | set_input_types (const std::vector< flex_type_enum > &types) |
Impelments the variance operator. Algorithm adapted from http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
Definition at line 807 of file groupby_aggregate_operators.hpp.
|
inlinevirtualinherited |
Adds an element to the aggregate. Elements to be added will be either the input_type (as set by set_input_type()) or UNDEFINED.
Operator that expects more than one input values need to overwrite this function
Reimplemented in turi::groupby_operators::zip_dict, turi::groupby_operators::argmax, and turi::groupby_operators::argmin.
Definition at line 60 of file group_aggregate_value.hpp.
|
inlinevirtualinherited |
No more elements will be added to this value. However, this value may still be combined with other values.
Reimplemented in turi::groupby_operators::quantile.
Definition at line 75 of file group_aggregate_value.hpp.
|
inlinevirtual |
Override this function for allowing the operator to be easily printed.
Reimplemented from turi::group_aggregate_value.
Definition at line 873 of file groupby_aggregate_operators.hpp.
|
inlinevirtualinherited |
Sets the input types and returns the output type. For instance, a sum aggregator when summing integers will return an integer, and when summing doubles will return doubles.
Default implementation assumes there is ony one input, and output type is the same as input type.
Reimplemented in turi::groupby_operators::zip_list, turi::groupby_operators::zip_dict, turi::groupby_operators::non_null_count, turi::groupby_operators::count, turi::groupby_operators::argmax, and turi::groupby_operators::argmin.
Definition at line 102 of file group_aggregate_value.hpp.