Package com.macrofocus.molap.subset
Class DefaultDistributionDimension<Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.molap.subset.AbstractDimension<Row>
-
- com.macrofocus.molap.subset.AbstractBinningDimension<Row,Column,Value,Bin>
-
- com.macrofocus.molap.subset.DefaultBinningDimension<Row,Column,Value,Bin>
-
- com.macrofocus.molap.subset.DefaultDistributionDimension<Row,Column,Value,Bin>
-
- All Implemented Interfaces:
BinningDimension<Row,Bin>
,CategoricalDimension<Row,Column,Bin>
,Dimension<Row>
,DistributionDimension<Row,Value,Bin>
,SingleBinningDimension<Row,Bin>
public class DefaultDistributionDimension<Row,Column,Value,Bin> extends DefaultBinningDimension<Row,Column,Value,Bin> implements DistributionDimension<Row,Value,Bin>
Created by luc on 11/07/16.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
AbstractBinningDimension.Operation
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractDimension
AbstractDimension.FilteringCallback<R>, AbstractDimension.FilteringEvent<Row>, AbstractDimension.IndicesIterable<R>, AbstractDimension.IndicesSupplier
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.subset.BinningDimension
BinningDimension.BinningStrategy<Row,Bin>
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.subset.DistributionDimension
DistributionDimension.DistributionStrategy<Value,Bin>
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.subset.SingleBinningDimension
SingleBinningDimension.SingleBinningStrategy<Row,Bin>
-
-
Field Summary
-
Fields inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
activeIndices, bins, dataFrame, filterCounts, groups, index, inverseFilter, maxValueCount, otherActiveIndices, selectedCounts, selection, sumValueCount, updateFilterImmediately
-
Fields inherited from class com.macrofocus.molap.subset.AbstractDimension
updateTimer
-
-
Constructor Summary
Constructors Constructor Description DefaultDistributionDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, DistributionDimension.DistributionStrategy<Value,Bin> distributionStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBinEndValue(Bin bin)
double
getBinStartValue(Bin bin)
DistributionDimension.DistributionStrategy<Value,Bin>
getDistributionStrategy()
double
getMaxValue()
double
getMinValue()
void
setDistributionStrategy(DistributionDimension.DistributionStrategy<Value,Bin> distributionStrategy)
-
Methods inherited from class com.macrofocus.molap.subset.DefaultBinningDimension
containsBin, createMap, getBin, getBinningStrategy, getGroup, getName, materializeIndex, reduce, rowToBin, setBinningStrategy, toString
-
Methods inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
filterAll, filterExact, filterExactIterable, getActiveBins, getActiveDensity, getActiveIndices, getActiveIndicesUsingArrays, getActiveIndicesUsingHashSet, getBins, getDensity, getFilter, getFilterDensity, getFilterExact, getIndex, getInverseFilter, getMaxActiveDensity, getMaxDensity, getRows, getSelection, getSelectionDensity, getSumActiveDensity, getSumDensity, isReducable, markDirty, scheduleUpdateFilter, setInverseFilter, updateActive, updateActiveIndices, updateFilter
-
Methods inherited from class com.macrofocus.molap.subset.AbstractDimension
addDimensionListener, addWeakDimensionListener, notifyDimensionChanged, notifySelectedCountChanged, removeDimensionListener, removeDimensionListeners, setUpdateTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.subset.BinningDimension
getActiveBins, getActiveDensity, getActiveIndicesUsingArrays, getActiveIndicesUsingHashSet, getBins, getDensity, getFilterDensity, getGroup, getInverseFilter, getMaxActiveDensity, getMaxDensity, getRows, getSelection, getSelectionDensity, getSumActiveDensity, getSumDensity, setInverseFilter
-
Methods inherited from interface com.macrofocus.molap.subset.Dimension
addDimensionListener, addWeakDimensionListener, filterAll, getActiveIndices, getName, isReducable, markDirty, materializeIndex, reduce, removeDimensionListener, removeDimensionListeners, setUpdateTimer
-
Methods inherited from interface com.macrofocus.molap.subset.SingleBinningDimension
filterExact, filterExactIterable, getBin, getBinningStrategy, getFilterExact, setBinningStrategy
-
-
-
-
Constructor Detail
-
DefaultDistributionDimension
public DefaultDistributionDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, DistributionDimension.DistributionStrategy<Value,Bin> distributionStrategy)
-
-
Method Detail
-
setDistributionStrategy
public void setDistributionStrategy(DistributionDimension.DistributionStrategy<Value,Bin> distributionStrategy)
- Specified by:
setDistributionStrategy
in interfaceDistributionDimension<Row,Column,Value>
-
getDistributionStrategy
public DistributionDimension.DistributionStrategy<Value,Bin> getDistributionStrategy()
- Specified by:
getDistributionStrategy
in interfaceDistributionDimension<Row,Column,Value>
-
getBinStartValue
public double getBinStartValue(Bin bin)
- Specified by:
getBinStartValue
in interfaceDistributionDimension<Row,Column,Value>
-
getBinEndValue
public double getBinEndValue(Bin bin)
- Specified by:
getBinEndValue
in interfaceDistributionDimension<Row,Column,Value>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValue
in interfaceDistributionDimension<Row,Column,Value>
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interfaceDistributionDimension<Row,Column,Value>
-
-