com.rapidminer.operator.preprocessing.transformation.aggregation
Class CountIncludingMissingsAggregator

java.lang.Object
  extended by com.rapidminer.operator.preprocessing.transformation.aggregation.CountIncludingMissingsAggregator
All Implemented Interfaces:
Aggregator

public class CountIncludingMissingsAggregator
extends java.lang.Object
implements Aggregator

This is an Aggregator for the CountIncludingMissingsAggregationFunction It counts all examples, if not ignoreMissing is true. Anyway, if only distinct values are counted, Missings are ignored.

Author:
Sebastian Land

Constructor Summary
CountIncludingMissingsAggregator(AggregationFunction function)
           
 
Method Summary
 void count(Example example)
          This will count the given example to the group this Aggregator belongs to.
 void count(Example example, double weight)
          This does the same as Aggregator.count(Example), but will take the weight of the current example into account.
 void set(Attribute attribute, DataRow row)
          This will set the result value into the data row onto the position of the given attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountIncludingMissingsAggregator

public CountIncludingMissingsAggregator(AggregationFunction function)
Method Detail

count

public void count(Example example)
Description copied from interface: Aggregator
This will count the given example to the group this Aggregator belongs to. The respective attribute will be queried from the AggregationFunction this was created by.

Specified by:
count in interface Aggregator

count

public void count(Example example,
                  double weight)
Description copied from interface: Aggregator
This does the same as Aggregator.count(Example), but will take the weight of the current example into account.

Specified by:
count in interface Aggregator

set

public void set(Attribute attribute,
                DataRow row)
Description copied from interface: Aggregator
This will set the result value into the data row onto the position of the given attribute.

Specified by:
set in interface Aggregator


Copyright © 2001-2009 by Rapid-I