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

timeBench.data.GranularityAggregationTree 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.data;

import ieg.prefuse.data.ParentChildNode;
import prefuse.data.Schema;
import prefuse.data.Table;
import prefuse.data.event.EventConstants;
import prefuse.data.event.TableListener;

/**
 * 
 * 
 * 

* Added: / TL
* Modifications: *

* * @author Tim Lammarsch * */ public class GranularityAggregationTree extends TemporalDataset { double[][] minValues; double[][] maxValues; public GranularityAggregationTree(Schema dataColumnSchema, int levelCount) throws TemporalDataException { // TODO handle int columns (canGetDouble but not canSetDouble) -> add as double columns // TODO handle boolean, Object columns -> exclude? super(dataColumnSchema); super.getNodeTable().addColumn(ParentChildNode.DEPTH, Integer.TYPE); additionalNonDataColums = new String[] {ParentChildNode.DEPTH}; minValues = new double[dataColumnSchema.getColumnCount()][levelCount]; maxValues = new double[dataColumnSchema.getColumnCount()][levelCount]; int l=0; for(int k : getDataColumnIndices()) { if (getNodeTable().canGetDouble(k)) { for(int j=0; j




© 2015 - 2025 Weber Informatics LLC | Privacy Policy