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

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

public class VarianceAggregator
extends NumericalAggregator

This is an Aggregator for the VarianceAggregationFunction

Author:
Sebastian Land

Constructor Summary
VarianceAggregator(AggregationFunction function)
           
 
Method Summary
 void count(double value)
          This method will count the given numerical value.
 void count(double value, double weight)
          Same as NumericalAggregator.count(double), but taking the weight into account.
 double getValue()
          This method has to return the numerical value of this aggregator.
 
Methods inherited from class com.rapidminer.operator.preprocessing.transformation.aggregation.NumericalAggregator
count, count, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VarianceAggregator

public VarianceAggregator(AggregationFunction function)
Method Detail

count

public void count(double value)
Description copied from class: NumericalAggregator
This method will count the given numerical value. This method will not be called in cases, where the examples value for the given source Attribute is unknown. Subclasses of this class will in this cases return either NaN if ignoreMissings is false, or will return the value as if the examples with the missing aren't present at all. Please see NumericalAggregator.count(double, double) for taking weights into account. You may not mix both methods within one aggregation run, as subclasses might implement more memory efficient data structures when not using weights.

Specified by:
count in class NumericalAggregator

count

public void count(double value,
                  double weight)
Description copied from class: NumericalAggregator
Same as NumericalAggregator.count(double), but taking the weight into account. You may not mix both methods within one aggregation run, as subclasses might implement more memory efficient data structures when not using weights.

Specified by:
count in class NumericalAggregator

getValue

public double getValue()
Description copied from class: NumericalAggregator
This method has to return the numerical value of this aggregator.

Specified by:
getValue in class NumericalAggregator


Copyright © 2001-2009 by Rapid-I