All Downloads are FREE. Search and download functionalities are using the official Maven repository.

timeBench.action.analytical.GranularityAggregationSum Maven / Gradle / Ivy

Go to download

TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.

The newest version!
package timeBench.action.analytical;

import timeBench.data.TemporalObject;

public class GranularityAggregationSum extends
		GranularityAggregationFunction {
	private boolean naomit = false;
	
	public GranularityAggregationSum() {
		naomit = false;
	}
	
	public GranularityAggregationSum(boolean missingValuesOmit) {
		naomit = missingValuesOmit;
	}

	@Override
	public double[] aggregate(Iterable childs,
			int[] dataColumnIndices, Double missingValueIdentifier) {
		double[] totalValue = new double[dataColumnIndices.length]; 
		for(int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy